Commit d7d48f6216686602e6e3d8470563326605b01c95

Authored by Yuanhan Liu
Committed by Linus Torvalds
1 parent d3330cf08c

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 <yuanhan.liu@linux.intel.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

... ... @@ -153,8 +153,7 @@
153 153 goto out;
154 154 }
155 155  
156   - new_ns = create_new_namespaces(flags, tsk,
157   - task_cred_xxx(tsk, user_ns), tsk->fs);
  156 + new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs);
158 157 if (IS_ERR(new_ns)) {
159 158 err = PTR_ERR(new_ns);
160 159 goto out;