namespace.h 841 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef NSENTER_NAMESPACE_H
  2. #define NSENTER_NAMESPACE_H
  3. #ifndef _GNU_SOURCE
  4. # define _GNU_SOURCE
  5. #endif
  6. #include <sched.h>
  7. /* All of these are taken from include/uapi/linux/sched.h */
  8. #ifndef CLONE_NEWNS
  9. # define CLONE_NEWNS 0x00020000 /* New mount namespace group */
  10. #endif
  11. #ifndef CLONE_NEWCGROUP
  12. # define CLONE_NEWCGROUP 0x02000000 /* New cgroup namespace */
  13. #endif
  14. #ifndef CLONE_NEWUTS
  15. # define CLONE_NEWUTS 0x04000000 /* New utsname namespace */
  16. #endif
  17. #ifndef CLONE_NEWIPC
  18. # define CLONE_NEWIPC 0x08000000 /* New ipc namespace */
  19. #endif
  20. #ifndef CLONE_NEWUSER
  21. # define CLONE_NEWUSER 0x10000000 /* New user namespace */
  22. #endif
  23. #ifndef CLONE_NEWPID
  24. # define CLONE_NEWPID 0x20000000 /* New pid namespace */
  25. #endif
  26. #ifndef CLONE_NEWNET
  27. # define CLONE_NEWNET 0x40000000 /* New network namespace */
  28. #endif
  29. #endif /* NSENTER_NAMESPACE_H */