]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/selftests: Update the IMA test to use BPF ring buffer
authorKP Singh <kpsingh@kernel.org>
Thu, 4 Feb 2021 19:36:22 +0000 (19:36 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 5 Feb 2021 00:35:05 +0000 (16:35 -0800)
commit1130b9f435c28bd984fc8f8b2eddcee013959bb3
tree160569736d54b2892fac30c99e004b52affebd3f
parent96868354533e27d80a6acf9009ae1c32232e1ec5
bpf/selftests: Update the IMA test to use BPF ring buffer

Instead of using shared global variables between userspace and BPF, use
the ring buffer to send the IMA hash on the BPF ring buffer. This helps
in validating both IMA and the usage of the ringbuffer in sleepable
programs.

Signed-off-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210204193622.3367275-3-kpsingh@kernel.org
tools/testing/selftests/bpf/prog_tests/test_ima.c
tools/testing/selftests/bpf/progs/ima.c