diff options
author | 2023-11-30 10:52:26 -0800 | |
---|---|---|
committer | 2023-12-06 10:03:00 -0800 | |
commit | 1a8df7fa00aac35aff9ef1941c5334b3a01d09e4 (patch) | |
tree | 59d1151a9cfb1cf98a61ab9ed845ed2873e2128c /tools/testing/selftests/bpf/prog_tests | |
parent | libbpf: add BPF token support to bpf_map_create() API (diff) | |
download | wireguard-linux-1a8df7fa00aac35aff9ef1941c5334b3a01d09e4.tar.xz wireguard-linux-1a8df7fa00aac35aff9ef1941c5334b3a01d09e4.zip |
libbpf: add BPF token support to bpf_btf_load() API
Allow user to specify token_fd for bpf_btf_load() API that wraps
kernel's BPF_BTF_LOAD command. This allows loading BTF from unprivileged
process as long as it has BPF token allowing BPF_BTF_LOAD command, which
can be created and delegated by privileged process.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20231130185229.2688956-15-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions