]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Allow userns root to call mknod on owned filesystems.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 23 May 2018 20:24:18 +0000 (15:24 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 24 May 2018 16:56:43 +0000 (11:56 -0500)
commitbca3dac0efedfa2fcabb5e43b297ebe288a732d2
tree092af72e9a7cb4ac14ddd1941cf82b6c269e0a1b
parent9efcaff0fb3056bdbf1cc156dbb55b0e069e894c
vfs: Allow userns root to call mknod on owned filesystems.

These filesystems already always set SB_I_NODEV so mknod will not be
useful for gaining control of any devices no matter their permissions.
This will allow overlayfs and applications like to fakeroot to use
device nodes to represent things on disk.

Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/namei.c