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)
commit82cb2b30773e3ccbbd2ed4427d52a91862d4db6d
tree687d9738a7fde05252f0f3d283692cba1c0af235
parentb1c2768a82b9cd149f54e335de38ea1212f47b07
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