Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346322
b: refs/heads/master
c: 5eaf563
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman committed Nov 19, 2012
1 parent aefecdb commit bf128a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3cdf5b45ffbac294bcdfac0393df72f7687c01e8
refs/heads/master: 5eaf563e53294d6696e651466697eb9d491f3946
8 changes: 0 additions & 8 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -1569,14 +1569,6 @@ long do_fork(unsigned long clone_flags,
if (clone_flags & (CLONE_THREAD|CLONE_PARENT))
return -EINVAL;
}
if (clone_flags & CLONE_NEWUSER) {
/* hopefully this check will go away when userns support is
* complete
*/
if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SETUID) ||
!capable(CAP_SETGID))
return -EPERM;
}

/*
* Determine whether and which event to report to ptracer. When
Expand Down

0 comments on commit bf128a1

Please sign in to comment.