logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

xt_cgroup.h (740B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_CGROUP_H
  3. #define _XT_CGROUP_H
  4. #include <linux/types.h>
  5. #include <linux/limits.h>
  6. struct xt_cgroup_info_v0 {
  7. __u32 id;
  8. __u32 invert;
  9. };
  10. struct xt_cgroup_info_v1 {
  11. __u8 has_path;
  12. __u8 has_classid;
  13. __u8 invert_path;
  14. __u8 invert_classid;
  15. char path[PATH_MAX];
  16. __u32 classid;
  17. /* kernel internal data */
  18. void *priv __attribute__((aligned(8)));
  19. };
  20. #define XT_CGROUP_PATH_MAX 512
  21. struct xt_cgroup_info_v2 {
  22. __u8 has_path;
  23. __u8 has_classid;
  24. __u8 invert_path;
  25. __u8 invert_classid;
  26. union {
  27. char path[XT_CGROUP_PATH_MAX];
  28. __u32 classid;
  29. };
  30. /* kernel internal data */
  31. void *priv __attribute__((aligned(8)));
  32. };
  33. #endif /* _XT_CGROUP_H */