mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
kernel/nsproxy.c: remove duplicate task_cred_xxx for user_ns
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]>
This commit is contained in:
parent
d3330cf08c
commit
d7d48f6216
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue