aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorMykyta Yatsenko <[email protected]>2025-03-17 17:40:37 +0000
committerAndrii Nakryiko <[email protected]>2025-03-17 20:45:12 +0000
commit07651ccda9ff10a8ca427670cdd06ce2c8e4269c (patch)
tree1bfa2a2cc1af36e2f67052cfd9fc128be335ccdb /tools/lib/bpf/libbpf.c
parentbpf: BPF token support for BPF_BTF_GET_FD_BY_ID (diff)
downloadkernel-07651ccda9ff10a8ca427670cdd06ce2c8e4269c.tar.gz
kernel-07651ccda9ff10a8ca427670cdd06ce2c8e4269c.zip
bpf: Return prog btf_id without capable check
Return prog's btf_id from bpf_prog_get_info_by_fd regardless of capable check. This patch enables scenario, when freplace program, running from user namespace, requires to query target prog's btf. Signed-off-by: Mykyta Yatsenko <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions