Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285036
b: refs/heads/master
c: d2a7009
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris committed Jan 5, 2012
1 parent d0eac58 commit 37f5838
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: 105ddf49cd301b7929a92f269440e8e562ef19db
refs/heads/master: d2a7009f0bb03fa22ad08dd25472efa0568126b9
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 (security_capable(current_cred(), ns, cap) == 0) {
if (has_ns_capability(current, ns, cap)) {
current->flags |= PF_SUPERPRIV;
return true;
}
Expand Down

0 comments on commit 37f5838

Please sign in to comment.