diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-02-11 16:16:03 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-02-11 16:16:03 -0800 |
commit | f7909fb83550573300e72d120a7d97c9f6b53a65 (patch) | |
tree | 20810edd4c137ce011b1ef7b751440a15d4088b7 /kernel | |
parent | c41d40b53306434628b577715487810816fca885 (diff) | |
parent | 47970b1b2aa64464bc0a9543e86361a622ae7c03 (diff) | |
download | linux-f7909fb83550573300e72d120a7d97c9f6b53a65.tar.bz2 |
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.c | 2 |
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; } |