seccomp.h 546 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_SECCOMP_H
  3. #include <linux/unistd.h>
  4. #define __NR_seccomp_read __NR_read
  5. #define __NR_seccomp_write __NR_write
  6. #define __NR_seccomp_exit __NR_exit
  7. #define __NR_seccomp_sigreturn __NR_rt_sigreturn
  8. #ifdef CONFIG_CPU_LITTLE_ENDIAN
  9. #define __SECCOMP_ARCH_LE __AUDIT_ARCH_LE
  10. #else
  11. #define __SECCOMP_ARCH_LE 0
  12. #endif
  13. #define SECCOMP_ARCH_NATIVE (AUDIT_ARCH_SH | __SECCOMP_ARCH_LE)
  14. #define SECCOMP_ARCH_NATIVE_NR NR_syscalls
  15. #define SECCOMP_ARCH_NATIVE_NAME "sh"
  16. #endif /* __ASM_SECCOMP_H */