selftests/bpf: Add tests for BPF object load with implicit token
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 24 Jan 2024 02:21:24 +0000 (18:21 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Jan 2024 00:21:03 +0000 (16:21 -0800)
commitb73d08d1318a2dde5bacbab77d0e2fd2aa47c933
tree0809ecfbdc0da2d20074ffb45e140dab820c7d54
parentd5baf0cac627fb3a00d9235955a388e5930b6d0e
selftests/bpf: Add tests for BPF object load with implicit token

Add a test to validate libbpf's implicit BPF token creation from default
BPF FS location (/sys/fs/bpf). Also validate that disabling this
implicit BPF token creation works.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20240124022127.2379740-28-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/token.c