void-packages/srcpkgs/logswan/patches/seccomp.patch

16 lines
356 B
Diff

--- src/seccomp.h.orig
+++ src/seccomp.h
@@ -40,7 +40,12 @@
LOGSWAN_SYSCALL_ALLOW(open),
#endif
LOGSWAN_SYSCALL_ALLOW(openat),
+#if defined(__NR_mmap)
LOGSWAN_SYSCALL_ALLOW(mmap),
+#endif
+#if defined(__NR_mmap2)
+ LOGSWAN_SYSCALL_ALLOW(mmap2),
+#endif
LOGSWAN_SYSCALL_ALLOW(munmap),
LOGSWAN_SYSCALL_ALLOW(read),
LOGSWAN_SYSCALL_ALLOW(write),