OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81be24d
)
fs: don't forget to put old mntns in mntns_install
author
Andrei Vagin
<avagin@openvz.org>
Fri, 9 Jun 2017 00:32:29 +0000
(17:32 -0700)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 15 Jun 2017 10:53:05 +0000
(06:53 -0400)
Fixes:
4f757f3cbf54
("make sure that mntns_install() doesn't end up with referral for root")
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrei Vagin <avagin@openvz.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c
patch
|
blob
|
history
diff --git
a/fs/namespace.c
b/fs/namespace.c
index
8bd3e4d
..
5a44384
100644
(file)
--- a/
fs/namespace.c
+++ b/
fs/namespace.c
@@
-3488,6
+3488,8
@@
static int mntns_install(struct nsproxy *nsproxy, struct ns_common *ns)
return err;
}
+ put_mnt_ns(old_mnt_ns);
+
/* Update the pwd and root */
set_fs_pwd(fs, &root);
set_fs_root(fs, &root);