]> git.baikalelectronics.ru Git - kernel.git/commit
smack: Implement the watch_key and post_notification hooks
authorDavid Howells <dhowells@redhat.com>
Tue, 14 Jan 2020 17:07:13 +0000 (17:07 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 19 May 2020 14:47:38 +0000 (15:47 +0100)
commit3f5580be45444a953ee1ca3ebd4a2f4cd7c9baae
treedab2ce77466d2de20ae20034eda3f17c8f51f422
parentf453917287a66d6afa07b55dca52d807d213b6b4
smack: Implement the watch_key and post_notification hooks

Implement the watch_key security hook in Smack to make sure that a key
grants the caller Read permission in order to set a watch on a key.

Also implement the post_notification security hook to make sure that the
notification source is granted Write permission by the watch queue.

For the moment, the watch_devices security hook is left unimplemented as
it's not obvious what the object should be since the queue is global and
didn't previously exist.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
include/linux/lsm_audit.h
security/smack/smack_lsm.c