xref: /linux/arch/s390/include/asm/seccomp.h (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_S390_SECCOMP_H
3 #define _ASM_S390_SECCOMP_H
4 
5 #include <linux/unistd.h>
6 
7 #define __NR_seccomp_read	__NR_read
8 #define __NR_seccomp_write	__NR_write
9 #define __NR_seccomp_exit	__NR_exit
10 #define __NR_seccomp_sigreturn	__NR_sigreturn
11 
12 #define __NR_seccomp_read_32	__NR_read
13 #define __NR_seccomp_write_32	__NR_write
14 #define __NR_seccomp_exit_32	__NR_exit
15 #define __NR_seccomp_sigreturn_32 __NR_sigreturn
16 
17 #include <asm-generic/seccomp.h>
18 
19 #define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_S390X
20 #define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
21 #define SECCOMP_ARCH_NATIVE_NAME	"s390x"
22 #ifdef CONFIG_COMPAT
23 # define SECCOMP_ARCH_COMPAT		AUDIT_ARCH_S390
24 # define SECCOMP_ARCH_COMPAT_NR		NR_syscalls
25 # define SECCOMP_ARCH_COMPAT_NAME	"s390"
26 #endif
27 
28 #endif	/* _ASM_S390_SECCOMP_H */
29