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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -75,6 +75,7 @@ struct common_audit_data { · 74 unmodified lines | |||
| 75 | #define LSM_AUDIT_DATA_IBPKEY 13 | 75 | #define LSM_AUDIT_DATA_IBPKEY 13 |
| 76 | #define LSM_AUDIT_DATA_IBENDPORT 14 | 76 | #define LSM_AUDIT_DATA_IBENDPORT 14 |
| 77 | #define LSM_AUDIT_DATA_LOCKDOWN 15 | 77 | #define LSM_AUDIT_DATA_LOCKDOWN 15 |
| 78 | #define LSM_AUDIT_DATA_NOTIFICATION 16 | ||
| 78 | union { | 79 | union { |
| 79 | struct path path; | 80 | struct path path; |
| 80 | struct dentry *dentry; | 81 | struct dentry *dentry; |