You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The eBPF maps uses locked memory, which is default very low. Your program likely need to increase resource limit RLIMIT_MEMLOCK see system call setrlimit(2).
The bpf_create_map call will return errno EPERM (Operation not permitted) when the RLIMIT_MEMLOCK memory size limit is exceeded.
Hi, I can not run any examples due to this error (I'm using Fedora 33):
$ uname -r
5.10.19-200.fc33.x86_64
$ pwd
goebpf/examples/xdp/basic_firewall
$ sudo ulimit
unlimited
$ clang --version
clang version 11.0.0 (Fedora 11.0.0-2.fc33)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ sudo ./main -iface enp7s0u2u1u2 -drop 8.8.8.8
LoadElf() failed: loadAndCreateMaps() failed: map.Create() failed: ebpf_create_map() failed: Operation not permitted
The text was updated successfully, but these errors were encountered: