]> git.ipfire.org Git - people/arne_f/kernel.git/commit - fs/namespace.c
mnt: Update detach_mounts to leave mounts connected
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 1 Apr 2015 23:30:06 +0000 (18:30 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 9 Apr 2015 16:39:57 +0000 (11:39 -0500)
commite0c9c0afd2fc958ffa34b697972721d81df8a56f
treed90b2370714bb9bcbcf482039eaf97d0bd79f6b0
parentf53e57975151f54ad8caa1b0ac8a78091cd5700a
mnt: Update detach_mounts to leave mounts connected

Now that it is possible to lazily unmount an entire mount tree and
leave the individual mounts connected to each other add a new flag
UMOUNT_CONNECTED to umount_tree to force this behavior and use
this flag in detach_mounts.

This closes a bug where the deletion of a file or directory could
trigger an unmount and reveal data under a mount point.

Cc: stable@vger.kernel.org
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
fs/namespace.c