Smack: getting the Smack security context of keys
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Tue, 17 Feb 2015 14:41:22 +0000 (15:41 +0100)
committerCasey Schaufler <casey@schaufler-ca.com>
Mon, 23 Mar 2015 20:19:47 +0000 (13:19 -0700)
commit7fc5f36e980a8f4830efdae3858f6e64eee538b7
tree5d3eeefafa8aa7c07a47c08287411d00a9f9b4a7
parent7412301b76bd53ee53b860f611fc3b5b1c2245b5
Smack: getting the Smack security context of keys

With this commit, the LSM Smack implements the LSM
side part of the system call keyctl with the action
code KEYCTL_GET_SECURITY.

It is now possible to get the context of, for example,
the user session key using the command "keyctl security @s".

The original patch has been modified for merge.

Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c