summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-02-12 01:16:03 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-02-12 01:16:03 +0100
commitf7909fb83550573300e72d120a7d97c9f6b53a65 (patch)
tree20810edd4c137ce011b1ef7b751440a15d4088b7 /kernel
parentMerge branch 's5p-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kern... (diff)
parentpci: use security_capable() when checking capablities during config space read (diff)
downloadlinux-f7909fb83550573300e72d120a7d97c9f6b53a65.tar.xz
linux-f7909fb83550573300e72d120a7d97c9f6b53a65.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6: pci: use security_capable() when checking capablities during config space read security: add cred argument to security_capable() tpm_tis: Use timeouts returned from TPM
Diffstat (limited to 'kernel')
-rw-r--r--kernel/capability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/capability.c b/kernel/capability.c
index 2f05303715a5..9e9385f132c8 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -306,7 +306,7 @@ int capable(int cap)
BUG();
}
- if (security_capable(cap) == 0) {
+ if (security_capable(current_cred(), cap) == 0) {
current->flags |= PF_SUPERPRIV;
return 1;
}