diff options
Diffstat (limited to 'kernel/nsproxy.c')
-rw-r--r-- | kernel/nsproxy.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c index 78e2ecb20165..afc0456f227a 100644 --- a/kernel/nsproxy.c +++ b/kernel/nsproxy.c | |||
@@ -153,8 +153,7 @@ int copy_namespaces(unsigned long flags, struct task_struct *tsk) | |||
153 | goto out; | 153 | goto out; |
154 | } | 154 | } |
155 | 155 | ||
156 | new_ns = create_new_namespaces(flags, tsk, | 156 | new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); |
157 | task_cred_xxx(tsk, user_ns), tsk->fs); | ||
158 | if (IS_ERR(new_ns)) { | 157 | if (IS_ERR(new_ns)) { |
159 | err = PTR_ERR(new_ns); | 158 | err = PTR_ERR(new_ns); |
160 | goto out; | 159 | goto out; |
@@ -251,7 +250,7 @@ SYSCALL_DEFINE2(setns, int, fd, int, nstype) | |||
251 | return PTR_ERR(file); | 250 | return PTR_ERR(file); |
252 | 251 | ||
253 | err = -EINVAL; | 252 | err = -EINVAL; |
254 | ei = PROC_I(file->f_dentry->d_inode); | 253 | ei = PROC_I(file_inode(file)); |
255 | ops = ei->ns_ops; | 254 | ops = ei->ns_ops; |
256 | if (nstype && (ops->type != nstype)) | 255 | if (nstype && (ops->type != nstype)) |
257 | goto out; | 256 | goto out; |