]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: selftests: Remove libcap usage from test_progs
authorMartin KaFai Lau <kafai@fb.com>
Wed, 16 Mar 2022 17:38:35 +0000 (10:38 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 16 Mar 2022 22:07:49 +0000 (15:07 -0700)
commitb02e892459a8d8b26162aa0eef1bdb1d27a8a8c6
tree687d9738a7fde05252f0f3d283692cba1c0af235
parent048a033aee9285256b6e9aed6d126cfc7e8e04bd
bpf: selftests: Remove libcap usage from test_progs

This patch removes the libcap usage from test_progs.
bind_perm.c is the only user.  cap_*_effective() helpers added in the
earlier patch are directly used instead.

No other selftest binary is using libcap, so '-lcap' is also removed
from the Makefile.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20220316173835.2039334-1-kafai@fb.com
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/prog_tests/bind_perm.c