Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suricata-ebpf: remove rlimit setting
BPFire runs 6.10.11 kernel which does not require rlimit setting. fix error below: strace -s1024 -f -o /tmp/suricata.txt suricata -c /etc/suricata/suricata-xdp.yaml --af-packet -vvv bpf(BPF_OBJ_GET, {pathname="/sys/fs/bpf/suricata-red0-flow_table_v4", bpf_fd=0, file_flags=0, path_fd=0}, 20) = -1 ENOENT (No such file or directory) prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=RLIM64_INFINITY, rlim_max=RLIM64_INFINITY}, NULL) = -1 EPERM (Operation not permitted) sendto(3, "<171>Oct 15 16:54:13 suricata: [ERRCODE: SC_ERR_MEM_ALLOC(1)] - Unable to lock memory: Operation not permitted (1)", 114, MSG_NOSIGNAL, NULL, 0) = 114 sendto(3, "<172>Oct 15 16:54:13 suricata: [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Error when loading XDP filter file", 104, MSG_NOSIGNAL, NULL, 0) = 104 Signed-off-by: Vincent Li <[email protected]>
- Loading branch information