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>
This commit is contained in:
parent
3e412ccc22
commit
a8478a6029
2 changed files with 83 additions and 1 deletions
|
|
@ -75,6 +75,7 @@ struct common_audit_data {
|
|||
#define LSM_AUDIT_DATA_IBPKEY 13
|
||||
#define LSM_AUDIT_DATA_IBENDPORT 14
|
||||
#define LSM_AUDIT_DATA_LOCKDOWN 15
|
||||
#define LSM_AUDIT_DATA_NOTIFICATION 16
|
||||
union {
|
||||
struct path path;
|
||||
struct dentry *dentry;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue