OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:03:51 +0000 (22:03 +0200)
commit84b78514033ff22c443473214ab6d0508394cf7a
tree6a5c0a39f97508bb7a3f5b4be76c2c159bcdb1f8
parentc076cbf218f3cb83dffe6982587d2b9751318962
mnt: Update detach_mounts to leave mounts connected

commit e0c9c0afd2fc958ffa34b697972721d81df8a56f upstream.

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.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c