diff options
| author | Stanislav Fomichev <[email protected]> | 2022-06-28 17:43:14 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-06-29 20:21:52 +0000 |
| 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 | kernel-dca85aac8895708b74c7f2264e3ab5048c02b8b2.tar.gz kernel-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 <[email protected]>
Acked-by: Martin KaFai Lau <[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/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 |
