1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 08:35:19 -05:00
linux/tools/lib/bpf
Andrii Nakryiko cac270ad79 libbpf: Support BPF token path setting through LIBBPF_BPF_TOKEN_PATH envvar
To allow external admin authority to override default BPF FS location
(/sys/fs/bpf) for implicit BPF token creation, teach libbpf to recognize
LIBBPF_BPF_TOKEN_PATH envvar. If it is specified and user application
didn't explicitly specify bpf_token_path option, it will be treated
exactly like bpf_token_path option, overriding default /sys/fs/bpf
location and making BPF token mandatory.

Suggested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20240124022127.2379740-29-andrii@kernel.org
2024-01-24 16:21:03 -08:00
..
.gitignore
bpf.c libbpf: Wire up token_fd into feature probing logic 2024-01-24 16:21:02 -08:00
bpf.h libbpf: Add BPF token support to bpf_prog_load() API 2024-01-24 16:21:02 -08:00
bpf_core_read.h libbpf: Correct bpf_core_read.h comment wrt bpf_core_relo struct 2024-01-23 20:29:57 -08:00
bpf_endian.h
bpf_gen_internal.h
bpf_helpers.h libbpf: add __arg_xxx macros for annotating global func args 2023-12-19 18:06:47 -08:00
bpf_prog_linfo.c
bpf_tracing.h
btf.c libbpf: Wire up BPF token support at BPF object level 2024-01-24 16:21:02 -08:00
btf.h
btf_dump.c
Build libbpf: Move feature detection code into its own file 2024-01-24 16:21:02 -08:00
elf.c libbpf: Move feature detection code into its own file 2024-01-24 16:21:02 -08:00
features.c libbpf: Wire up token_fd into feature probing logic 2024-01-24 16:21:02 -08:00
gen_loader.c
hashmap.c
hashmap.h
libbpf.c libbpf: Support BPF token path setting through LIBBPF_BPF_TOKEN_PATH envvar 2024-01-24 16:21:03 -08:00
libbpf.h libbpf: Support BPF token path setting through LIBBPF_BPF_TOKEN_PATH envvar 2024-01-24 16:21:03 -08:00
libbpf.map libbpf: Add bpf_token_create() API 2024-01-24 16:21:01 -08:00
libbpf.pc.template
libbpf_common.h
libbpf_errno.c
libbpf_internal.h libbpf: Wire up BPF token support at BPF object level 2024-01-24 16:21:02 -08:00
libbpf_legacy.h
libbpf_probes.c libbpf: Wire up token_fd into feature probing logic 2024-01-24 16:21:02 -08:00
libbpf_version.h
linker.c libbpf: Skip DWARF sections in linker sanity check 2023-12-21 10:05:15 +01:00
Makefile
netlink.c
nlattr.c
nlattr.h
relo_core.c
relo_core.h
ringbuf.c
skel_internal.h
str_error.c
str_error.h libbpf: Move feature detection code into its own file 2024-01-24 16:21:02 -08:00
strset.c
strset.h
usdt.bpf.h
usdt.c
zip.c
zip.h