--- a/src/seccomp.c +++ b/src/seccomp.c @@ -60,6 +60,19 @@ # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390 #elif defined(__s390x__) # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390X +#elif defined(__mips64) +/* FIXME: add N32 support */ +# ifdef __MIPSEL__ +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPSEL64 +# else +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPS64 +# endif +#elif defined(__mips) +# ifdef __MIPSEL__ +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPSEL +# else +# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPS +# endif #else # error "Platform does not support seccomp filter yet" #endif