aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-03 17:38:50 +0000
committerOmar Polo <op@omarpolo.com>2021-07-03 17:38:50 +0000
commitb24021d4a27ec5311490ee51b42dc2dacb18aa23 (patch)
treebec3bd0169a9b26baf06bc48ef99f340970234f3 /sandbox.c
parent7322a054f5c434f957d996b0db6994c78b7773a0 (diff)
fix seccomp filter for ppc64le
before we matched ppc64le as ppc64 (which is big ending I presume), so the seccomp filter would always kill gmid #4 related
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sandbox.c b/sandbox.c
index 8b1244b..17f246d 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -196,7 +196,11 @@ sandbox_logger_process(void)
#elif defined(__or1k__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_OPENRISC
#elif defined(__powerpc64__)
-# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
+# if (BYTE_ORDER == LITTLE_ENDIAN)
+# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE
+# else
+# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
+# endif
#elif defined(__powerpc__)
# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC
#elif defined(__riscv)