]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 23 May 2015 19:43:26 +0000 (15:43 -0400)
commit2c981af6c8ed75640a7058473aaf42732386836c
tree95700da8a19dade77d1c6805eebac30ab00ce4bc
parentd4b113a8840776191189952a9d194cf7c034af35
mnt: Fix fs_fully_visible to verify the root directory is visible

[ Upstream commit 7e96c1b0e0f495c5a7450dc4aa7c9a24ba4305bd ]

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.

Cc: stable@vger.kernel.org
Reported-by: Eric Windisch <ewindisch@docker.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/namespace.c