On Tue, Mar 15, 2022 at 10:36:48PM -0700, Andrii Nakryiko wrote: > On Tue, Mar 15, 2022 at 6:48 PM Martin KaFai Lau <kafai@xxxxxx> 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 > > > > Love the clean up and dropping the dependency on libcap! But it > currently breaks CI, probably because of missing CAP_BPF definitions > due to old system headers. Let's add #ifndef CAP_BPF/#define CAP_BPF > XXX/#endif guards for newer capabilities to make it work in CI as > well? will spin v2. Thanks everyone for the review !