26 lines
754 B
Diff
26 lines
754 B
Diff
--- src/seccomp.c.orig 2018-12-20 16:56:30.070932156 +0100
|
|
+++ src/seccomp.c 2018-12-20 16:57:19.849670660 +0100
|
|
@@ -43,6 +43,12 @@
|
|
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386
|
|
#elif defined(__x86_64__)
|
|
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64
|
|
+#elif defined(__aarch64__)
|
|
+# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64
|
|
+#elif defined(__powerpc64le__)
|
|
+# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE
|
|
+#elif defined(__powerpc64__)
|
|
+# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
|
|
#elif defined(__arm__)
|
|
# ifndef EM_ARM
|
|
# define EM_ARM 40
|
|
@@ -87,7 +89,9 @@
|
|
SC_ALLOW (exit_group),
|
|
SC_ALLOW (exit),
|
|
|
|
+#ifdef __NR_open
|
|
SC_DENY (open, EINVAL),
|
|
+#endif
|
|
SC_DENY (fcntl, EINVAL),
|
|
SC_DENY (fstat, EINVAL),
|
|
#ifdef __NR_mmap
|