seccomp.h 870 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * arch/arm64/include/asm/seccomp.h
  4. *
  5. * Copyright (C) 2014 Linaro Limited
  6. * Author: AKASHI Takahiro <[email protected]>
  7. */
  8. #ifndef _ASM_SECCOMP_H
  9. #define _ASM_SECCOMP_H
  10. #include <asm/unistd.h>
  11. #ifdef CONFIG_COMPAT
  12. #define __NR_seccomp_read_32 __NR_compat_read
  13. #define __NR_seccomp_write_32 __NR_compat_write
  14. #define __NR_seccomp_exit_32 __NR_compat_exit
  15. #define __NR_seccomp_sigreturn_32 __NR_compat_rt_sigreturn
  16. #endif /* CONFIG_COMPAT */
  17. #include <asm-generic/seccomp.h>
  18. #define SECCOMP_ARCH_NATIVE AUDIT_ARCH_AARCH64
  19. #define SECCOMP_ARCH_NATIVE_NR NR_syscalls
  20. #define SECCOMP_ARCH_NATIVE_NAME "aarch64"
  21. #ifdef CONFIG_COMPAT
  22. # define SECCOMP_ARCH_COMPAT AUDIT_ARCH_ARM
  23. # define SECCOMP_ARCH_COMPAT_NR __NR_compat_syscalls
  24. # define SECCOMP_ARCH_COMPAT_NAME "arm"
  25. #endif
  26. #endif /* _ASM_SECCOMP_H */