summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorMykyta Yatsenko <yatsenko@meta.com>2025-03-17 20:40:37 +0300
committerAndrii Nakryiko <andrii@kernel.org>2025-03-17 23:45:12 +0300
commit07651ccda9ff10a8ca427670cdd06ce2c8e4269c (patch)
tree1bfa2a2cc1af36e2f67052cfd9fc128be335ccdb /rust/helpers/helpers.c
parent0de445d18e36ca5914337217c118016ba5db574d (diff)
downloadlinux-07651ccda9ff10a8ca427670cdd06ce2c8e4269c.tar.xz
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 <yatsenko@meta.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/bpf/20250317174039.161275-3-mykyta.yatsenko5@gmail.com
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions