aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/nsproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/nsproxy.c')
-rw-r--r--kernel/nsproxy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c
index a214e0e9035f..4357a0a7d17d 100644
--- a/kernel/nsproxy.c
+++ b/kernel/nsproxy.c
@@ -242,9 +242,6 @@ SYSCALL_DEFINE2(setns, int, fd, int, nstype)
242 struct file *file; 242 struct file *file;
243 int err; 243 int err;
244 244
245 if (!capable(CAP_SYS_ADMIN))
246 return -EPERM;
247
248 file = proc_ns_fget(fd); 245 file = proc_ns_fget(fd);
249 if (IS_ERR(file)) 246 if (IS_ERR(file))
250 return PTR_ERR(file); 247 return PTR_ERR(file);