projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
capabitlies: ns_capable can use the cap helpers rather than lsm call
[deliverable/linux.git]
/
kernel
/
capability.c
diff --git
a/kernel/capability.c
b/kernel/capability.c
index 5f99e5d68e1f97b680d6e370be49c89190eaad93..47626446c39affe8247c38787bf83f5c40a0a643 100644
(file)
--- a/
kernel/capability.c
+++ b/
kernel/capability.c
@@
-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;
}
This page took
0.029264 seconds
and
5
git commands to generate.