Hello,
It would seem direct packet access is forbidden from SOCKET_FILTER
programs, is this intentional ?
I.e I'm getting:
libbpf: prog 'socket_filter': BPF program load failed: Permission denied
libbpf: prog 'socket_filter': -- BEGIN PROG LOAD LOG --
0: R1=ctx(id=0,off=0,imm=0) R10=fp0
; int socket_filter(struct __sk_buff *skb)
0: (bf) r6 = r1 ; R1=ctx(id=0,off=0,imm=0)
R6_w=ctx(id=0,off=0,imm=0)
1: (b7) r0 = 0 ; R0_w=inv0
; uint8_t *tail = (uint8_t *)(long)skb->data_end;
2: (61) r2 = *(u32 *)(r6 +80)
invalid bpf_context access off=80 size=4
processed 3 insns (limit 1000000) max_states_per_insn 0 total_states 0
peak_states 0 mark_read 0
Regards