Martin KaFai Lau wrote: > After upgrading to the newer libcap (>= 2.60), > the libcap commit aca076443591 ("Make cap_t operations thread safe.") > added a "__u8 mutex;" to the "struct _cap_struct". It caused a few byte > shift that breaks the assumption made in the "struct libcap" definition > in test_verifier.c. > > This set is to remove the libcap dependency from the bpf selftests. > > Martin KaFai Lau (3): > bpf: selftests: Add helpers to directly use the capget and capset > syscall > bpf: selftests: Remove libcap usage from test_verifier > bpf: selftests: Remove libcap usage from test_progs > > tools/testing/selftests/bpf/Makefile | 8 +- > tools/testing/selftests/bpf/cap_helpers.c | 68 ++++++++++++++ > tools/testing/selftests/bpf/cap_helpers.h | 10 +++ > .../selftests/bpf/prog_tests/bind_perm.c | 45 ++-------- > tools/testing/selftests/bpf/test_verifier.c | 89 ++++++------------- > 5 files changed, 118 insertions(+), 102 deletions(-) > create mode 100644 tools/testing/selftests/bpf/cap_helpers.c > create mode 100644 tools/testing/selftests/bpf/cap_helpers.h > > -- > 2.30.2 > For the series, Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>