aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/global_data_init.c
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2022-09-01 06:51:26 +0000
committerMartin KaFai Lau <[email protected]>2022-09-01 23:21:14 +0000
commitef331a8d4c0061ea4d353cd0db1c9b33fd45f0f2 (patch)
tree449e2f4dceecc825621dd5cc89876fb776424f9e /tools/testing/selftests/bpf/prog_tests/global_data_init.c
parentbpf: Remove useless else if (diff)
downloadkernel-ef331a8d4c0061ea4d353cd0db1c9b33fd45f0f2.tar.gz
kernel-ef331a8d4c0061ea4d353cd0db1c9b33fd45f0f2.zip
bpf: Only add BTF IDs for socket security hooks when CONFIG_SECURITY_NETWORK is on
When CONFIG_SECURITY_NETWORK is disabled, there will be build warnings from resolve_btfids: WARN: resolve_btfids: unresolved symbol bpf_lsm_socket_socketpair ...... WARN: resolve_btfids: unresolved symbol bpf_lsm_inet_conn_established Fixing it by wrapping these BTF ID definitions by CONFIG_SECURITY_NETWORK. Fixes: 69fd337a975c ("bpf: per-cgroup lsm flavor") Fixes: 9113d7e48e91 ("bpf: expose bpf_{g,s}etsockopt to lsm cgroup") Signed-off-by: Hou Tao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/global_data_init.c')
0 files changed, 0 insertions, 0 deletions