Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscalls: omit AttachType field in haveProgAttach #652

Merged
merged 1 commit into from May 3, 2022

Commits on May 3, 2022

  1. 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>
    ti-mo committed May 3, 2022
    Copy the full SHA
    754a2e2 View commit details
    Browse the repository at this point in the history