aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/network_helpers.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2021-07-01 20:06:19 +0000
committerAndrii Nakryiko <[email protected]>2021-07-23 23:45:07 +0000
commit3cee6fb8e69ecd79be891c89a94974c48a25a437 (patch)
tree4f8b1e34f10c77c3589d1b4dc042ff7293616526 /tools/testing/selftests/bpf/network_helpers.c
parentbpf: tcp: Bpf iter batching and lock_sock (diff)
downloadkernel-3cee6fb8e69ecd79be891c89a94974c48a25a437.tar.gz
kernel-3cee6fb8e69ecd79be891c89a94974c48a25a437.zip
bpf: tcp: Support bpf_(get|set)sockopt in bpf tcp iter
This patch allows bpf tcp iter to call bpf_(get|set)sockopt. To allow a specific bpf iter (tcp here) to call a set of helpers, get_func_proto function pointer is added to bpf_iter_reg. The bpf iter is a tracing prog which currently requires CAP_PERFMON or CAP_SYS_ADMIN, so this patch does not impose other capability checks for bpf_(get|set)sockopt. Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Acked-by: Kuniyuki Iwashima <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/network_helpers.c')
0 files changed, 0 insertions, 0 deletions