projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3330cf
)
kernel/nsproxy.c: remove duplicate task_cred_xxx for user_ns
author
Yuanhan Liu
<
[email protected]
>
Fri, 22 Feb 2013 00:44:21 +0000
(16:44 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 22 Feb 2013 01:22:26 +0000
(17:22 -0800)
We can use user_ns, which is also assigned from task_cred_xxx(tsk,
user_ns), at the beginning of copy_namespaces().
Signed-off-by: Yuanhan Liu <
[email protected]
>
Acked-by: Serge Hallyn <
[email protected]
>
Cc: "Eric W. Biederman" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/nsproxy.c
patch
|
blob
|
history
diff --git
a/kernel/nsproxy.c
b/kernel/nsproxy.c
index 78e2ecb201655575dceef87cd9f8c771547bcfb7..b781e66a8f2c4fca3943f2441f7d19296128f525 100644
(file)
--- a/
kernel/nsproxy.c
+++ b/
kernel/nsproxy.c
@@
-153,8
+153,7
@@
int copy_namespaces(unsigned long flags, struct task_struct *tsk)
goto out;
}
- new_ns = create_new_namespaces(flags, tsk,
- task_cred_xxx(tsk, user_ns), tsk->fs);
+ new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs);
if (IS_ERR(new_ns)) {
err = PTR_ERR(new_ns);
goto out;