aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 811ffbad7889..8c29abb19014 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1569,14 +1569,6 @@ long do_fork(unsigned long clone_flags,
1569 if (clone_flags & (CLONE_THREAD|CLONE_PARENT)) 1569 if (clone_flags & (CLONE_THREAD|CLONE_PARENT))
1570 return -EINVAL; 1570 return -EINVAL;
1571 } 1571 }
1572 if (clone_flags & CLONE_NEWUSER) {
1573 /* hopefully this check will go away when userns support is
1574 * complete
1575 */
1576 if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SETUID) ||
1577 !capable(CAP_SETGID))
1578 return -EPERM;
1579 }
1580 1572
1581 /* 1573 /*
1582 * Determine whether and which event to report to ptracer. When 1574 * Determine whether and which event to report to ptracer. When