mirror of https://github.com/OISF/suricata
ebpf: raise RLIMIT_MEMLOCK only on kernel >= 5.11
EBPFLoadFile() unconditionally raised RLIMIT_MEMLOCK to infinity and aborted the eBPF/XDP load if the call failed. Since Linux 5.11 BPF map memory is memcg-accounted and is no longer charged against RLIMIT_MEMLOCK (https://lwn.net/Articles/829307/), so raising the limit is unnecessary on those kernels. Ticket: 8719pull/15807/head
parent
499995bf0e
commit
f917926165
Loading…
Reference in New Issue