seccomp.h 264 B

123456789101112131415
  1. #include <syscall.h>
  2. #define SECCOMP_SET_MODE_STRICT 0
  3. #define SECCOMP_SET_MODE_FILTER 1
  4. struct seccomp {
  5. unsigned short len;
  6. char* buf;
  7. };
  8. inline static long sys_seccomp(int cmd, int flags, void* ptr)
  9. {
  10. return syscall3(NR_seccomp, cmd, flags, (long)ptr);
  11. }