Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscalls: omit AttachType field in haveProgAttach
Discovered while running the test suite on kernel 4.14. With the addition BPF_PROG_ATTACH tests in package link, the haveProgAttach feature test was added, gated on 4.10. This helper uses the AttachType field, which sets the bpf_attr expected_attach_type field, which is only available as of 4.17. As probing CGroupSKB is sufficient, omit setting AttachType. This patch fixes the tests on kernels between 4.10 and 4.17. Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information