Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5d67f07 authored by Al Viro's avatar Al Viro
Browse files

Touch all affected namespaces on propagation of mount



We shouldn't just touch the namespace of current process

Caught-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent cf2706a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1377,7 +1377,7 @@ static int attach_recursive_mnt(struct vfsmount *source_mnt,
	if (parent_path) {
		detach_mnt(source_mnt, parent_path);
		attach_mnt(source_mnt, path);
		touch_mnt_namespace(current->nsproxy->mnt_ns);
		touch_mnt_namespace(parent_path->mnt->mnt_ns);
	} else {
		mnt_set_mountpoint(dest_mnt, dest_dentry, source_mnt);
		commit_tree(source_mnt);