]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
mnt: Move the FS_USERNS_MOUNT check into sget_userns
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 6 Jun 2016 20:48:04 +0000 (15:48 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 23 Jun 2016 20:41:55 +0000 (15:41 -0500)
commita001e74cef34d95ede6535ef521011c612657a3a
treeca0917ef4ac8e75675ba32d69dd7dce29696ba57
parent6e4eab577a0cae15b3da9b888cff16fe57981b3e
mnt: Move the FS_USERNS_MOUNT check into sget_userns

Allowing a filesystem to be mounted by other than root in the initial
user namespace is a filesystem property not a mount namespace property
and as such should be checked in filesystem specific code.  Move the
FS_USERNS_MOUNT test into super.c:sget_userns().

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