Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * arch/arm64/include/asm/seccomp.h
0004  *
0005  * Copyright (C) 2014 Linaro Limited
0006  * Author: AKASHI Takahiro <takahiro.akashi@linaro.org>
0007  */
0008 #ifndef _ASM_SECCOMP_H
0009 #define _ASM_SECCOMP_H
0010 
0011 #include <asm/unistd.h>
0012 
0013 #ifdef CONFIG_COMPAT
0014 #define __NR_seccomp_read_32        __NR_compat_read
0015 #define __NR_seccomp_write_32       __NR_compat_write
0016 #define __NR_seccomp_exit_32        __NR_compat_exit
0017 #define __NR_seccomp_sigreturn_32   __NR_compat_rt_sigreturn
0018 #endif /* CONFIG_COMPAT */
0019 
0020 #include <asm-generic/seccomp.h>
0021 
0022 #define SECCOMP_ARCH_NATIVE     AUDIT_ARCH_AARCH64
0023 #define SECCOMP_ARCH_NATIVE_NR      NR_syscalls
0024 #define SECCOMP_ARCH_NATIVE_NAME    "aarch64"
0025 #ifdef CONFIG_COMPAT
0026 # define SECCOMP_ARCH_COMPAT        AUDIT_ARCH_ARM
0027 # define SECCOMP_ARCH_COMPAT_NR __NR_compat_syscalls
0028 # define SECCOMP_ARCH_COMPAT_NAME   "arm"
0029 #endif
0030 
0031 #endif /* _ASM_SECCOMP_H */