Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285927
b: refs/heads/master
c: 951880e
h: refs/heads/master
i:
  285925: bf79b11
  285923: c5b7ad1
  285919: 694b1a2
v: v3
  • Loading branch information
Linus Torvalds committed Jan 17, 2012
1 parent 68bf497 commit d8006f4
Show file tree
Hide file tree
Showing 2 changed files with 2 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: c2bc3a316a7281f67e36b34dac2802cbe36a9128
refs/heads/master: 951880e634a79884236a575b896abf55c39ae0bf
2 changes: 1 addition & 1 deletion trunk/kernel/capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ bool ns_capable(struct user_namespace *ns, int cap)
BUG();
}

if (has_ns_capability(current, ns, cap)) {
if (security_capable(current_cred(), ns, cap) == 0) {
current->flags |= PF_SUPERPRIV;
return true;
}
Expand Down

0 comments on commit d8006f4

Please sign in to comment.