diff options
author | 2022-03-02 12:14:01 +0100 | |
---|---|---|
committer | 2022-03-10 18:57:54 -0800 | |
commit | 91e8fa254dbd0890c34286acdc12e96412305840 (patch) | |
tree | 104a74b7fb4da33feca8414534af9c66594ca898 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/bpf: Add test for bpf_ima_file_hash() (diff) | |
download | linux-dev-91e8fa254dbd0890c34286acdc12e96412305840.tar.xz linux-dev-91e8fa254dbd0890c34286acdc12e96412305840.zip |
selftests/bpf: Check if the digest is refreshed after a file write
Verify that bpf_ima_inode_hash() returns a non-fresh digest after a file
write, and that bpf_ima_file_hash() returns a fresh digest. Verification is
done by requesting the digest from the bprm_creds_for_exec hook, called
before ima_bprm_check().
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220302111404.193900-7-roberto.sassu@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions