diff --git a/nfq2/sec.h b/nfq2/sec.h index ac86525..9cb7a51 100644 --- a/nfq2/sec.h +++ b/nfq2/sec.h @@ -18,13 +18,24 @@ bool dropcaps(void); #define arch_nr (offsetof(struct seccomp_data, arch)) #define syscall_arg(x) (offsetof(struct seccomp_data, args[x])) -#ifndef AUDIT_ARCH_RISCV64 -#define AUDIT_ARCH_RISCV64 (EM_RISCV | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) +#ifndef __AUDIT_ARCH_64BIT +#define __AUDIT_ARCH_64BIT 0x80000000 +#endif +#ifndef __AUDIT_ARCH_LE +#define __AUDIT_ARCH_LE 0x40000000 #endif #ifndef EM_RISCV #define EM_RISCV 243 #endif - +#ifndef AUDIT_ARCH_RISCV64 +#define AUDIT_ARCH_RISCV64 (EM_RISCV | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) +#endif +#ifndef EM_LOONGARCH +#define EM_LOONGARCH 258 +#endif +#ifndef AUDIT_ARCH_LOONGARCH64 +#define AUDIT_ARCH_LOONGARCH64 (EM_LOONGARCH | __AUDIT_ARCH_64BIT | __AUDIT_ARCH_LE) +#endif #if defined(__aarch64__)