summaryrefslogtreecommitdiffstats
path: root/kernel/capability.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-01-06 23:58:22 +0100
committerJames Morris <jmorris@namei.org>2009-01-06 23:58:22 +0100
commitac8cc0fa5395fe2278e305a4cbed48e90d88d878 (patch)
tree515f577bfddd054ee4373228be7c974dfb8133af /kernel/capability.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm (diff)
parentCRED: Fix regression in cap_capable() as shown up by sys_faccessat() [ver #3] (diff)
downloadlinux-ac8cc0fa5395fe2278e305a4cbed48e90d88d878.tar.xz
linux-ac8cc0fa5395fe2278e305a4cbed48e90d88d878.zip
Merge branch 'next' into for-linus
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 c598d9d5be4f..688926e496be 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -306,7 +306,7 @@ int capable(int cap)
BUG();
}
- if (has_capability(current, cap)) {
+ if (security_capable(cap) == 0) {
current->flags |= PF_SUPERPRIV;
return 1;
}