]> Pileus Git - ~andy/linux/blobdiff - kernel/nsproxy.c
userns: Allow unprivileged use of setns.
[~andy/linux] / kernel / nsproxy.c
index a214e0e9035fd0fb76c1d7cbcc518bff8fb1aab8..4357a0a7d17d29889adf04712e5e254ec50eaa02 100644 (file)
@@ -242,9 +242,6 @@ SYSCALL_DEFINE2(setns, int, fd, int, nstype)
        struct file *file;
        int err;
 
-       if (!capable(CAP_SYS_ADMIN))
-               return -EPERM;
-
        file = proc_ns_fget(fd);
        if (IS_ERR(file))
                return PTR_ERR(file);