capabilities: reverse arguments to security_capable
authorEric Paris <eparis@redhat.com>
Tue, 3 Jan 2012 17:25:15 +0000 (12:25 -0500)
committerEric Paris <eparis@redhat.com>
Thu, 5 Jan 2012 23:52:53 +0000 (18:52 -0500)
commitb7e724d303b684655e4ca3dabd5a6840ad19012d
tree5474d8d49d61ade4c5e306a0485a835587237bf4
parent6a9de49115d5ff9871d953af1a5c8249e1585731
capabilities: reverse arguments to security_capable

security_capable takes ns, cred, cap.  But the LSM capable() hook takes
cred, ns, cap.  The capability helper functions also take cred, ns, cap.
Rather than flip argument order just to flip it back, leave them alone.
Heck, this should be a little faster since argument will be in the right
place!

Signed-off-by: Eric Paris <eparis@redhat.com>
drivers/pci/pci-sysfs.c
include/linux/security.h
kernel/capability.c
security/security.c