seccomp.h 929 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __ASM_SECCOMP_H
  2. #include <linux/thread_info.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. /*
  9. * Kludge alert:
  10. *
  11. * The generic seccomp code currently allows only a single compat ABI. Until
  12. * this is fixed we priorize O32 as the compat ABI over N32.
  13. */
  14. #ifdef CONFIG_MIPS32_O32
  15. #define TIF_32BIT TIF_32BIT_REGS
  16. #define __NR_seccomp_read_32 4003
  17. #define __NR_seccomp_write_32 4004
  18. #define __NR_seccomp_exit_32 4001
  19. #define __NR_seccomp_sigreturn_32 4193 /* rt_sigreturn */
  20. #elif defined(CONFIG_MIPS32_N32)
  21. #define TIF_32BIT _TIF_32BIT_ADDR
  22. #define __NR_seccomp_read_32 6000
  23. #define __NR_seccomp_write_32 6001
  24. #define __NR_seccomp_exit_32 6058
  25. #define __NR_seccomp_sigreturn_32 6211 /* rt_sigreturn */
  26. #endif /* CONFIG_MIPS32_O32 */
  27. #endif /* __ASM_SECCOMP_H */