diff options
author | Omar Polo <op@omarpolo.com> | 2021-07-03 17:38:50 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-07-03 17:38:50 +0000 |
commit | b24021d4a27ec5311490ee51b42dc2dacb18aa23 (patch) | |
tree | bec3bd0169a9b26baf06bc48ef99f340970234f3 /sandbox.c | |
parent | 7322a054f5c434f957d996b0db6994c78b7773a0 (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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |