I updated to the latest version of aya recently, and I notice that the attach method of SockOps has added a new parameter. That parameter can only be CAttachGroup::Single since it is being copied to the BPF_CREATE_LINK's flags, that must be zero (see kernel code) .
Hello,
I updated to the latest version of aya recently, and I notice that the attach method of SockOps has added a new parameter. That parameter can only be
CAttachGroup::Single
since it is being copied to the BPF_CREATE_LINK's flags, that must be zero (see kernel code) .Code snippets from Aya:
As a consequence, If I want to work with kernel versions <5.7 and allow multiple BPF programs, I need to have something like this on my code:
Is that the expected behavior?
This can be avoided by setting
bpf_link_create
's flags to zero, since is the only valid value.