Smack: implement setselfattr and getselfattr hooks
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 12 Sep 2023 20:56:53 +0000 (13:56 -0700)
committerPaul Moore <paul@paul-moore.com>
Mon, 13 Nov 2023 03:54:42 +0000 (22:54 -0500)
commit38b323e5881608b5a229526d9a567df6182255ef
treecf08b81eb15e9d58553bf8347e5cb4129ea2c78a
parente1ca7129db2c3b3c4d261702905a752e6b2710b4
Smack: implement setselfattr and getselfattr hooks

Implement Smack support for security_[gs]etselfattr.
Refactor the setprocattr hook to avoid code duplication.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/smack/smack_lsm.c