summaryrefslogtreecommitdiffstats
path: root/kernel/capability.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-01-06 23:21:54 +0100
committerJames Morris <jmorris@namei.org>2009-01-06 23:21:54 +0100
commit29881c4502ba05f46bc12ae8053d4e08d7e2615c (patch)
tree536ea4ac63554e836438bd5f370ddecaa343f1f4 /kernel/capability.c
parentSELinux: shrink sizeof av_inhert selinux_class_perm and context (diff)
downloadlinux-29881c4502ba05f46bc12ae8053d4e08d7e2615c.tar.xz
linux-29881c4502ba05f46bc12ae8053d4e08d7e2615c.zip
Revert "CRED: Fix regression in cap_capable() as shown up by sys_faccessat() [ver #2]"
This reverts commit 14eaddc967b16017d4a1a24d2be6c28ecbe06ed8. David has a better version to come.
Diffstat (limited to 'kernel/capability.c')
-rw-r--r--kernel/capability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/capability.c b/kernel/capability.c
index df62f53f84ac..36b4b4daebec 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -308,7 +308,7 @@ int capable(int cap)
BUG();
}
- if (security_capable(cap) == 0) {
+ if (has_capability(current, cap)) {
current->flags |= PF_SUPERPRIV;
return 1;
}