diff options
| author | Dima Zavin <dima@android.com> | 2011-02-23 14:44:17 -0800 |
|---|---|---|
| committer | Dima Zavin <dima@android.com> | 2011-02-23 14:44:17 -0800 |
| commit | dce99aa359bf88f309d7edf8cbcd05d5639536e3 (patch) | |
| tree | 6b3400060fe8a1db42ab0fb20aa17c4e032639ea /security | |
| parent | 067d34c4763b579a683a53301b97de52ed26c02a (diff) | |
| parent | f5412be599602124d2bdd49947b231dd77c0bf99 (diff) | |
Merge commit 'v2.6.38-rc6' into android-2.6.38
Conflicts:
drivers/rtc/Kconfig
Change-Id: I7c1b1711311c008c378774cce1c80bc265f9b0a9
Diffstat (limited to 'security')
| -rw-r--r-- | security/security.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/security/security.c b/security/security.c index 739e40362f4..7b7308ace8c 100644 --- a/security/security.c +++ b/security/security.c @@ -154,10 +154,9 @@ int security_capset(struct cred *new, const struct cred *old, effective, inheritable, permitted); } -int security_capable(int cap) +int security_capable(const struct cred *cred, int cap) { - return security_ops->capable(current, current_cred(), cap, - SECURITY_CAP_AUDIT); + return security_ops->capable(current, cred, cap, SECURITY_CAP_AUDIT); } int security_real_capable(struct task_struct *tsk, int cap) |
