Skip to content

Commit 109c9e2

Browse files
committed
wip: rlimit memlock less than infinity
1 parent 9db7117 commit 109c9e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2823,7 +2823,7 @@ jobs:
28232823
run: python3 ./suricata-verify/run.py -q --debug-failed
28242824
- run: ulimit -a
28252825
- run: ulimit -l
2826-
- run: ulimit -l unlimited
2826+
- run: sudo ulimit -l unlimited || true
28272827
- name: Running suricata-verify live tests
28282828
run: sudo python3 ./suricata-verify/run.py --live lo --debug-failed
28292829
- run: make install

src/util-ebpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ int EBPFLoadFile(const char *iface, const char *path, const char * section,
337337

338338
/* Sending the eBPF code to the kernel requires a large amount of
339339
* locked memory so we set it to unlimited to avoid a ENOPERM error */
340-
struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
340+
struct rlimit r = { 0x1000000, 0x1000000 };
341341
if (setrlimit(RLIMIT_MEMLOCK, &r) != 0) {
342342
SCLogError("Unable to lock memory: %s (%d)", strerror(errno), errno);
343343
return -1;

0 commit comments

Comments
 (0)