selftests/bpf: add tests for BPF object load with implicit token
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 13 Dec 2023 19:08:40 +0000 (11:08 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 13 Dec 2023 23:47:05 +0000 (15:47 -0800)
commit18678cf0ee13cf19bac4ecd55665e6d1d63108b3
treebb34410c2c7e36319fe0849ad74c0672b95075b6
parent98e0eaa36adfb580a3aa43fca62847ec0f625d3f
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.

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