security: add cred argument to security_capable()
authorChris Wright <chrisw@sous-sol.org>
Thu, 10 Feb 2011 06:11:51 +0000 (22:11 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Feb 2011 22:54:29 +0000 (14:54 -0800)
commit50194161bee65819784a08b5b7d4f2a2320ed8c2
tree273848f603fec10c177fd5623b5479a71f5c80cd
parentdcf2ef88e48b7257b23aa13b9358779c72609a2c
security: add cred argument to security_capable()

commit 6037b715d6fab139742c3df8851db4c823081561 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/security.h
kernel/capability.c
security/security.c