diff options
author | KP Singh <[email protected]> | 2020-11-24 15:12:08 +0000 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-11-26 00:04:04 +0100 |
commit | 403319be5de51167cd70ddf594b76c95e6d26844 (patch) | |
tree | 330fb9618146152fb2f0e30c1168e91609e9e2be /tools/perf/scripts/python/netdev-times.py | |
parent | db13db9f67fe5049159a05e870daedcee5879f8d (diff) |
ima: Implement ima_inode_hash
This is in preparation to add a helper for BPF LSM programs to use
IMA hashes when attached to LSM hooks. There are LSM hooks like
inode_unlink which do not have a struct file * argument and cannot
use the existing ima_file_hash API.
An inode based API is, therefore, useful in LSM based detections like an
executable trying to delete itself which rely on the inode_unlink LSM
hook.
Moreover, the ima_file_hash function does nothing with the struct file
pointer apart from calling file_inode on it and converting it to an
inode.
Signed-off-by: KP Singh <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: Mimi Zohar <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions