selftests/bpf: lsm_cgroup functional test
authorStanislav Fomichev <sdf@google.com>
Tue, 28 Jun 2022 17:43:14 +0000 (10:43 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Jun 2022 20:21:52 +0000 (13:21 -0700)
commitdca85aac8895708b74c7f2264e3ab5048c02b8b2
treec9d5a8066e9746d08b2dc123694f6c30093363f7
parent596f5fb2ea2a38032abb8043606ce7168f21f6ab
selftests/bpf: lsm_cgroup functional test

Functional test that exercises the following:

1. apply default sk_priority policy
2. permit TX-only AF_PACKET socket
3. cgroup attach/detach/replace
4. reusing trampoline shim

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/r/20220628174314.1216643-12-sdf@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/lsm_cgroup.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bpf_tracing_net.h
tools/testing/selftests/bpf/progs/lsm_cgroup.c [new file with mode: 0644]