diff options
| author | David Howells <[email protected]> | 2020-02-12 13:58:35 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2020-05-19 15:16:08 +0100 |
| commit | 998f50407ffc9370565c7ed3fcd1366adccdfbbf (patch) | |
| tree | f3c28ad22a9d75c557e399d83ac4d06426dd5c8e /include/linux/lsm_hooks.h | |
| parent | c73be61cede5882f9605a852414db559c0ebedfd (diff) | |
security: Add hooks to rule on setting a watch
Add security hooks that will allow an LSM to rule on whether or not a watch
may be set. More than one hook is required as the watches watch different
types of object.
Signed-off-by: David Howells <[email protected]>
Acked-by: James Morris <[email protected]>
cc: Casey Schaufler <[email protected]>
cc: Stephen Smalley <[email protected]>
cc: [email protected]
Diffstat (limited to 'include/linux/lsm_hooks.h')
| -rw-r--r-- | include/linux/lsm_hooks.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index 0b5e5769b836..3f1374cffb76 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -1446,6 +1446,11 @@ * @cred: The event-triggerer's credentials * @n: The notification being posted * + * @watch_key: + * Check to see if a process is allowed to watch for event notifications + * from a key or keyring. + * @key: The key to watch. + * * Security hooks for using the eBPF maps and programs functionalities through * eBPF syscalls. * |
