]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/namespace.c
mnt: fs_fully_visible enforce noexec and nosuid if !SB_I_NOEXEC
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 4 Jun 2015 14:43:11 +0000 (09:43 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 10 Jul 2015 15:41:13 +0000 (10:41 -0500)
commit77b1a97d218277d55a15016826d1fd79290f1df2
tree0b973e720d2b550196010a683a19eb21f77a3d22
parent90f8572b0f021fdd1baa68e00a8c30482ee9e5f4
mnt: fs_fully_visible enforce noexec and nosuid  if !SB_I_NOEXEC

The filesystems proc and sysfs do not have executable files do not
have exectuable files today and portions of userspace break if we do
enforce nosuid and noexec consistency of nosuid and noexec flags
between previous mounts and new mounts of proc and sysfs.

Add the code to enforce consistency of the nosuid and noexec flags,
and use the presence of SB_I_NOEXEC to signal that there is no need to
bother.

This results in a completely userspace invisible change that makes it
clear fs_fully_visible can only skip the enforcement of noexec and
nosuid because it is known the filesystems in question do not support
executables.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/namespace.c