aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.h
diff options
context:
space:
mode:
authorMykyta Yatsenko <[email protected]>2025-03-17 17:40:36 +0000
committerAndrii Nakryiko <[email protected]>2025-03-17 20:45:11 +0000
commit0de445d18e36ca5914337217c118016ba5db574d (patch)
treee4524bbe1683861784add30e3447b4a53c7f69fb /tools/lib/bpf/bpf.h
parentbpf, x86: Fix objtool warning for timed may_goto (diff)
downloadkernel-0de445d18e36ca5914337217c118016ba5db574d.tar.gz
kernel-0de445d18e36ca5914337217c118016ba5db574d.zip
bpf: BPF token support for BPF_BTF_GET_FD_BY_ID
Currently BPF_BTF_GET_FD_BY_ID requires CAP_SYS_ADMIN, which does not allow running it from user namespace. This creates a problem when freplace program running from user namespace needs to query target program BTF. This patch relaxes capable check from CAP_SYS_ADMIN to CAP_BPF and adds support for BPF token that can be passed in attributes to syscall. Signed-off-by: Mykyta Yatsenko <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf.h')
0 files changed, 0 insertions, 0 deletions