security: add cred argument to security_capable()
authorChris Wright <chrisw@sous-sol.org>
Thu, 10 Feb 2011 06:11:51 +0000 (22:11 -0800)
committerJames Morris <jmorris@namei.org>
Fri, 11 Feb 2011 06:41:58 +0000 (17:41 +1100)
commit6037b715d6fab139742c3df8851db4c823081561
treeaba9e9427debd4fa5b904daefa8e71a6320f4b93
parentdeabb19ba4bd8c06ae69bc262e3594b515e3a459
security: add cred argument to security_capable()

Expand security_capable() to include cred, so that it can be usable in a
wider range of call sites.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/security.h
kernel/capability.c
security/security.c