BACKPORT: 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)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 30 Jun 2016 12:57:46 +0000 (14:57 +0200)
commitff33d7a31e16ba18a356dfd0ba7f084856969eb8
tree18e83e02d5aebaa450b7dab8ccc0433ac3a10f7b
parent1cf284390b5392c1dff114851a9dc5a37282f662
BACKPORT: 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>
(cherry-picked from upstream 7fc5f36e980a8f4830efdae3858f6e64eee538b7)
security/smack/smack_lsm.c