diff options
author | 2022-06-28 10:43:14 -0700 | |
---|---|---|
committer | 2022-06-29 13:21:52 -0700 | |
commit | dca85aac8895708b74c7f2264e3ab5048c02b8b2 (patch) | |
tree | c9d5a8066e9746d08b2dc123694f6c30093363f7 /tools/testing/selftests/bpf/progs/bpf_tracing_net.h | |
parent | bpftool: implement cgroup tree for BPF_LSM_CGROUP (diff) | |
download | wireguard-linux-dca85aac8895708b74c7f2264e3ab5048c02b8b2.tar.xz wireguard-linux-dca85aac8895708b74c7f2264e3ab5048c02b8b2.zip |
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>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/bpf_tracing_net.h')
-rw-r--r-- | tools/testing/selftests/bpf/progs/bpf_tracing_net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/progs/bpf_tracing_net.h b/tools/testing/selftests/bpf/progs/bpf_tracing_net.h index 1c1289ba5fc5..98dd2c4815f0 100644 --- a/tools/testing/selftests/bpf/progs/bpf_tracing_net.h +++ b/tools/testing/selftests/bpf/progs/bpf_tracing_net.h @@ -8,6 +8,7 @@ #define SOL_SOCKET 1 #define SO_SNDBUF 7 #define __SO_ACCEPTCON (1 << 16) +#define SO_PRIORITY 12 #define SOL_TCP 6 #define TCP_CONGESTION 13 |