Remove libcap dependency from bpf selftests
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 0 repliesApplied 3/3
- v13 patches 7 repliesSuperseded
Changes in v2 from the cover letter
- Define CAP_PERFMON and CAP_BPF when the older <linux/capability.h> does not have them. (Andrii)
Patches in v2 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bpf: selftests: Add helpers to directly use the capget and capset syscalltools/ tools/ | +86 | 0 replies | Applied |
| 2/3 | bpf: selftests: Remove libcap usage from test_verifiertools/ tools/ | +27 | 0 replies | Applied |
| 3/3 | bpf: selftests: Remove libcap usage from test_progstools/ tools/ | +11 | 0 replies | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | John Fastabend | Stanislav Fomichev |
|---|---|---|
| 1/3 | A-b | |
| 2/3 | A-b | |
| 3/3 | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 bpf-next 0/3] Remove libcap dependency from bpf selftests
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)
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 | 67 ++++++++++++++ tools/testing/selftests/bpf/cap_helpers.h | 19 ++++ .../selftests/bpf/prog_tests/bind_perm.c | 44 ++-------- tools/testing/selftests/bpf/test_verifier.c | 88 ++++++------------- 5 files changed, 124 insertions(+), 102 deletions(-) create mode 100644 tools/testing/selftests/bpf/cap_helpers.c create mode 100644 tools/testing/selftests/bpf/cap_helpers.h
Signature · 1 line
2.30.2