From: Al Viro Date: Tue, 7 Apr 2009 16:15:39 +0000 (-0400) Subject: Touch all affected namespaces on propagation of mount X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e5d67f0715bc60f6c19abdd86d007d7bb29c9951;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Touch all affected namespaces on propagation of mount We shouldn't just touch the namespace of current process Caught-by: Trond Myklebust Signed-off-by: Al Viro --- diff --git a/fs/namespace.c b/fs/namespace.c index d9138f81ec10..41196209a906 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -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);