1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm64/include/asm/seccomp.h
5 * Copyright (C) 2014 Linaro Limited
6 * Author: AKASHI Takahiro <takahiro.akashi@linaro.org>
11 #include <asm/unistd_compat_32.h>
14 #define __NR_seccomp_read_32 __NR_compat32_read
15 #define __NR_seccomp_write_32 __NR_compat32_write
16 #define __NR_seccomp_exit_32 __NR_compat32_exit
17 #define __NR_seccomp_sigreturn_32 __NR_compat32_rt_sigreturn
18 #endif /* CONFIG_COMPAT */
20 #include <asm-generic/seccomp.h>
22 #define SECCOMP_ARCH_NATIVE AUDIT_ARCH_AARCH64
23 #define SECCOMP_ARCH_NATIVE_NR NR_syscalls
24 #define SECCOMP_ARCH_NATIVE_NAME "aarch64"
26 #include <asm/unistd_compat_32.h>
27 # define SECCOMP_ARCH_COMPAT AUDIT_ARCH_ARM
28 # define SECCOMP_ARCH_COMPAT_NR __NR_compat32_syscalls
29 # define SECCOMP_ARCH_COMPAT_NAME "arm"
32 #endif /* _ASM_SECCOMP_H */