summaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-01-05 20:38:04 +0100
committerEric W. Biederman <ebiederm@xmission.com>2015-04-03 03:34:20 +0200
commit0c56fe31420ca599c90240315f7959bf1b4eb6ce (patch)
tree6b61d7457c3ee31429e70ede1ebabb07e2bbebbb /fs/namespace.c
parentmnt: On an unmount propagate clearing of MNT_LOCKED (diff)
downloadlinux-0c56fe31420ca599c90240315f7959bf1b4eb6ce.tar.xz
linux-0c56fe31420ca599c90240315f7959bf1b4eb6ce.zip
mnt: Don't propagate unmounts to locked mounts
If the first mount in shared subtree is locked don't unmount the shared subtree. This is ensured by walking through the mounts parents before children and marking a mount as unmountable if it is not locked or it is locked but it's parent is marked. This allows recursive mount detach to propagate through a set of mounts when unmounting them would not reveal what is under any locked mount. Cc: stable@vger.kernel.org Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/namespace.c')
0 files changed, 0 insertions, 0 deletions