aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2023-11-29 15:44:13 -0800
committerAlexei Starovoitov <[email protected]>2023-12-01 16:21:03 -0800
commit67814c00de3161181cddd06c77aeaf86ac4cc584 (patch)
treeec467b83873691b94b7e4ded55a4abdfa46ef41c /tools/testing/selftests/bpf/progs/test_autoload.c
parentac9c05e0e453cfcab2866f6d28f257590e4f66e5 (diff)
bpf, fsverity: Add kfunc bpf_get_fsverity_digest
fsverity provides fast and reliable hash of files, namely fsverity_digest. The digest can be used by security solutions to verify file contents. Add new kfunc bpf_get_fsverity_digest() so that we can access fsverity from BPF LSM programs. This kfunc is added to fs/verity/measure.c because some data structure used in the function is private to fsverity (fs/verity/fsverity_private.h). To avoid recursion, bpf_get_fsverity_digest is only allowed in BPF LSM programs. Signed-off-by: Song Liu <[email protected]> Acked-by: Eric Biggers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions