diff options
author | James Morris <jmorris@namei.org> | 2009-01-07 09:21:54 +1100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-01-07 09:21:54 +1100 |
commit | 29881c4502ba05f46bc12ae8053d4e08d7e2615c (patch) | |
tree | 536ea4ac63554e836438bd5f370ddecaa343f1f4 /kernel/capability.c | |
parent | 76f7ba35d4b5219fcc4cb072134c020ec77d030d (diff) | |
download | op-kernel-dev-29881c4502ba05f46bc12ae8053d4e08d7e2615c.zip op-kernel-dev-29881c4502ba05f46bc12ae8053d4e08d7e2615c.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/capability.c b/kernel/capability.c index df62f53..36b4b4d 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; } |