Smack: onlycap limits on CAP_MAC_ADMIN
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 5 Jun 2012 22:28:30 +0000 (15:28 -0700)
committerElena Reshetova <elena.reshetova@intel.com>
Fri, 19 Oct 2012 10:47:36 +0000 (13:47 +0300)
commit6153487e764b95d79ae7b44e0a002ac1e0814764
tree57bc63e26d4d3449da94443f0d58c01f1b44b737
parent30dc58a546fc6a73c0542f319fb4609602f854cb
Smack: onlycap limits on CAP_MAC_ADMIN

Smack is integrated with the POSIX capabilities scheme,
using the capabilities CAP_MAC_OVERRIDE and CAP_MAC_ADMIN to
determine if a process is allowed to ignore Smack checks or
change Smack related data respectively. Smack provides an
additional restriction that if an onlycap value is set
by writing to /smack/onlycap only tasks with that Smack
label are allowed to use CAP_MAC_OVERRIDE.

This change adds CAP_MAC_ADMIN as a capability that is affected
by the onlycap mechanism.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack.h
security/smack/smack_access.c
security/smack/smack_lsm.c
security/smack/smackfs.c