]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d3c586bbd8e245fb9e2dd6087fef88814386ca2
tree5d3eeefafa8aa7c07a47c08287411d00a9f9b4a7
parentc36e73fa914b4e9c197f756cec4b9fcc32a1c157
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