Smack: Privilege check on key operations
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 8 Jan 2018 18:25:32 +0000 (10:25 -0800)
committerCasey Schaufler <casey@schaufler-ca.com>
Wed, 10 Jan 2018 17:29:14 +0000 (09:29 -0800)
commitd19dfe58b7ecbef3bd0c403c650200c57913ba1b
tree59ab1001fe590143cda52657a71b5d3087ae6b91
parentda49b5dad18aad357ab8841ee65d415f683efc6f
Smack: Privilege check on key operations

Smack: Privilege check on key operations

Operations on key objects are subjected to Smack policy
even if the process is privileged. This is inconsistent
with the general behavior of Smack and may cause issues
with authentication by privileged daemons. This patch
allows processes with CAP_MAC_OVERRIDE to access keys
even if the Smack rules indicate otherwise.

Reported-by: Jose Bollo <jobol@nonadev.net>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack.h
security/smack/smack_access.c
security/smack/smack_lsm.c