Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _ASM_X86_SECCOMP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _ASM_X86_SECCOMP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <asm/unistd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifdef CONFIG_X86_32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define __NR_seccomp_sigreturn		__NR_sigreturn
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifdef CONFIG_COMPAT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <asm/ia32_unistd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define __NR_seccomp_read_32		__NR_ia32_read
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define __NR_seccomp_write_32		__NR_ia32_write
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define __NR_seccomp_exit_32		__NR_ia32_exit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define __NR_seccomp_sigreturn_32	__NR_ia32_sigreturn
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #ifdef CONFIG_X86_64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) # define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_X86_64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) # define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) # define SECCOMP_ARCH_NATIVE_NAME	"x86_64"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) # ifdef CONFIG_COMPAT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #  define SECCOMP_ARCH_COMPAT		AUDIT_ARCH_I386
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #  define SECCOMP_ARCH_COMPAT_NR	IA32_NR_syscalls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #  define SECCOMP_ARCH_COMPAT_NAME	"ia32"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) # endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)  * x32 will have __X32_SYSCALL_BIT set in syscall number. We don't support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)  * caching them and they are treated as out of range syscalls, which will
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)  * always pass through the BPF filter.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #else /* !CONFIG_X86_64 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) # define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_I386
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) # define SECCOMP_ARCH_NATIVE_NR	        NR_syscalls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) # define SECCOMP_ARCH_NATIVE_NAME	"ia32"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #include <asm-generic/seccomp.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif /* _ASM_X86_SECCOMP_H */