summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-02-15 05:45:22 +0100
committerIngo Molnar <mingo@elte.hu>2011-02-15 05:45:22 +0100
commit24115cc28a564355ba7a7a4a38e836b20d14b030 (patch)
treef1343c7df5ba8af6dc1ded5f658ed2ea243cff87 /security
parenta62fa1c3306c6a377b8f9a80fc61c0a360fd925c (diff)
parent795abaf1e4e188c4171e3cd3dbb11a9fcacaf505 (diff)
Merge branch 'linus' into auto-latest
Diffstat (limited to 'security')
-rw-r--r--security/security.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/security/security.c b/security/security.c
index b995428f1c96..bb33ecadcf95 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)