]> git.ipfire.org Git - people/arne_f/kernel.git/commit
mnt: Fix fs_fully_visible to verify the root directory is visible
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 8 May 2015 21:36:50 +0000 (16:36 -0500)
committerJiri Slaby <jslaby@suse.cz>
Sat, 16 May 2015 07:12:43 +0000 (09:12 +0200)
commit95c021d8b720eb3ade60e98b593f38a47df039fb
treef3a9686f104353c25dcd7d216427d06184cfad2f
parente8ed8a03c3526f0932ac5dc085a2d52644a18651
mnt: Fix fs_fully_visible to verify the root directory is visible

commit 7e96c1b0e0f495c5a7450dc4aa7c9a24ba4305bd upstream.

This fixes a dumb bug in fs_fully_visible that allows proc or sys to
be mounted if there is a bind mount of part of /proc/ or /sys/ visible.

Reported-by: Eric Windisch <ewindisch@docker.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/namespace.c