Commit 7987f162 authored by Blaise Boscaccy's avatar Blaise Boscaccy Committed by Alexei Starovoitov
Browse files

selftests/bpf: Add a kernel flag test for LSM bpf hook



This test exercises the kernel flag added to security_bpf by
effectively blocking light-skeletons from loading while allowing
normal skeletons to function as-is. Since this should work with any
arbitrary BPF program, an existing program from LSKELS_EXTRA was
used as a test payload.

Signed-off-by: default avatarBlaise Boscaccy <bboscaccy@linux.microsoft.com>
Acked-by: default avatarSong Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20250310221737.821889-3-bboscaccy@linux.microsoft.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 082f1db0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment