projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf2706a
)
Touch all affected namespaces on propagation of mount
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 7 Apr 2009 16:15:39 +0000
(12:15 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 21 Apr 2009 03:01:15 +0000
(23:01 -0400)
We shouldn't just touch the namespace of current process
Caught-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/namespace.c
b/fs/namespace.c
index d9138f81ec10727a0807e8f15a9e798ee93a20dc..41196209a9062d5ed62d520b1b77a910751e6fb9 100644
(file)
--- 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);