Skip to content

Commit fa8b7ec

Browse files
committed
wip: rlimit memlock less than infinity
1 parent 285e4d0 commit fa8b7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 = { 0x100000, 0x100000 };
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)