]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mnt: Modify fs_fully_visible to deal with locked ro nodev and atime
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 9 May 2015 04:49:47 +0000 (23:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:01 +0000 (10:10 -0700)
commit51c2c47ef6349d49e49002054f8c0d11d3b5646e
treeb29286feaa7f9992d4eaef98a3c1461c10d82abb
parentb5eb51f2ee063044401492650e9e01bb35974870
mnt: Modify fs_fully_visible to deal with locked ro nodev and atime

commit 8c6cf9cc829fcd0b179b59f7fe288941d0e31108 upstream.

Ignore an existing mount if the locked readonly, nodev or atime
attributes are less permissive than the desired attributes
of the new mount.

On success ensure the new mount locks all of the same readonly, nodev and
atime attributes as the old mount.

The nosuid and noexec attributes are not checked here as this change
is destined for stable and enforcing those attributes causes a
regression in lxc and libvirt-lxc where those applications will not
start and there are no known executables on sysfs or proc and no known
way to create exectuables without code modifications

Fixes: e51db73532955 ("userns: Better restrictions on when proc and sysfs can be mounted")
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c