Smack: getting the Smack security context of keys
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 <08496fd66cc394b517cafa0b18bcb9ce79fe4230@open.eurogiciel.org>
Signed-off-by: Casey Schaufler <77bc9a9984e6786c5799d7a71768cf023120ef76@schaufler-ca.com>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs