seccomp.h 808 B

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