summaryrefslogtreecommitdiff
path: root/fs/binfmt_aout.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-11-15 05:22:25 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-25 16:49:28 (GMT)
commit71a3424628dd7d8813e0d077dc023c957481f29f (patch)
tree9427dc87c01e5f8622a53a3434f1ba1468518ba8 /fs/binfmt_aout.c
parent0489953bb4e2cd6b5c3920a2642987d4b3dffdec (diff)
downloadlinux-fsl-qoriq-71a3424628dd7d8813e0d077dc023c957481f29f.tar.xz
vfs: Fix a regression in mounting proc
commit 41301ae78a99ead04ea42672a1ab72c6f44cc81d upstream. Gao feng <gaofeng@cn.fujitsu.com> reported that commit e51db73532955dc5eaba4235e62b74b460709d5b userns: Better restrictions on when proc and sysfs can be mounted caused a regression on mounting a new instance of proc in a mount namespace created with user namespace privileges, when binfmt_misc is mounted on /proc/sys/fs/binfmt_misc. This is an unintended regression caused by the absolutely bogus empty directory check in fs_fully_visible. The check fs_fully_visible replaced didn't even bother to attempt to verify proc was fully visible and hiding proc files with any kind of mount is rare. So for now fix the userspace regression by allowing directory with nlink == 1 as /proc/sys/fs/binfmt_misc has. I will have a better patch but it is not stable material, or last minute kernel material. So it will have to wait. Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Acked-by: Gao feng <gaofeng@cn.fujitsu.com> Tested-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/binfmt_aout.c')
0 files changed, 0 insertions, 0 deletions