Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120746
b: refs/heads/master
c: 7657d90
h: refs/heads/master
v: v3
  • Loading branch information
Serge E. Hallyn authored and James Morris committed Dec 7, 2008
1 parent 73c5d98 commit ad0bc83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: c37bbb0fdcc01610fd55604eb6927210a1d20044
refs/heads/master: 7657d90497f98426af17f0ac633a9b335bb7a8fb
3 changes: 2 additions & 1 deletion trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,8 @@ long do_fork(unsigned long clone_flags,
/* hopefully this check will go away when userns support is
* complete
*/
if (!capable(CAP_SYS_ADMIN))
if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SETUID) ||
!capable(CAP_SETGID))
return -EPERM;
}

Expand Down

0 comments on commit ad0bc83

Please sign in to comment.