commit 3a4c0a39cc214b5840d4483d7db2d8adaf94a15a
parent cb3b713c351410105f700079beec7fe1556ce009
Author: Frederic Cambus <fred@statdns.com>
Date: Thu, 17 Sep 2020 09:55:50 +0200
Add missing test for __NR_mmap, the mmap syscall doesn't exist on arm.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/seccomp.h b/src/seccomp.h
@@ -68,7 +68,9 @@ static struct sock_filter filter[] = {
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), /* i386 glibc */
#endif