Merge branch 'Remove libcap dependency from bpf selftests'
authorAlexei Starovoitov <ast@kernel.org>
Wed, 16 Mar 2022 22:07:49 +0000 (15:07 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 16 Mar 2022 22:07:50 +0000 (15:07 -0700)
commitaaccdf9c93a00cc5eec6f9d97046b44643c60800
tree687d9738a7fde05252f0f3d283692cba1c0af235
parent6585abea98ae5f750358a6427f2ddf7715393f69
parent82cb2b30773e3ccbbd2ed4427d52a91862d4db6d
Merge branch 'Remove libcap dependency from bpf selftests'

Martin KaFai Lau says:

====================

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.

v2:
- Define CAP_PERFMON and CAP_BPF when the older <linux/capability.h>
  does not have them. (Andrii)
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>