diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/seccomp.h.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in index dfbb267..4ab10d9 100644 --- a/include/seccomp.h.in +++ b/include/seccomp.h.in @@ -153,6 +153,18 @@ struct scmp_arg_cmp { #define SCMP_ARCH_AARCH64 AUDIT_ARCH_AARCH64 /** + * The LoongArch architecture tokens + */ +/* 64-bit LoongArch audit support is upstream as of 5.19-rc1 */ +#ifndef AUDIT_ARCH_LOONGARCH64 +#ifndef EM_LOONGARCH +#define EM_LOONGARCH 258 +#endif /* EM_LOONGARCH */ +#define AUDIT_ARCH_LOONGARCH64 (EM_LOONGARCH|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) +#endif /* AUDIT_ARCH_LOONGARCH64 */ +#define SCMP_ARCH_LOONGARCH64 AUDIT_ARCH_LOONGARCH64 + +/** * The MIPS architecture tokens */ #ifndef __AUDIT_ARCH_CONVENTION_MIPS64_N32 |