]> git.baikalelectronics.ru Git - kernel.git/commit
mnt: fs_fully_visible test the proper mount for MNT_LOCKED
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 27 May 2016 19:50:05 +0000 (14:50 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 7 Jun 2016 01:52:03 +0000 (20:52 -0500)
commit471e1eb043589aaeb144e9f6858d22c20750ca48
tree322444a9a4901a7c43dfea1fb5cd056306288eeb
parent531c478c025b24610ae67b2479886fbd7df077f1
mnt: fs_fully_visible test the proper mount for MNT_LOCKED

MNT_LOCKED implies on a child mount implies the child is locked to the
parent.  So while looping through the children the children should be
tested (not their parent).

Typically an unshare of a mount namespace locks all mounts together
making both the parent and the slave as locked but there are a few
corner cases where other things work.

Cc: stable@vger.kernel.org
Fixes: fdc0f5b390d2 ("vfs: Ignore unlocked mounts in fs_fully_visible")
Reported-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/namespace.c