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_SECMARK.h (648B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_SECMARK_H_target
  3. #define _XT_SECMARK_H_target
  4. #include <linux/types.h>
  5. /*
  6. * This is intended for use by various security subsystems (but not
  7. * at the same time).
  8. *
  9. * 'mode' refers to the specific security subsystem which the
  10. * packets are being marked for.
  11. */
  12. #define SECMARK_MODE_SEL 0x01 /* SELinux */
  13. #define SECMARK_SECCTX_MAX 256
  14. struct xt_secmark_target_info {
  15. __u8 mode;
  16. __u32 secid;
  17. char secctx[SECMARK_SECCTX_MAX];
  18. };
  19. struct xt_secmark_target_info_v1 {
  20. __u8 mode;
  21. char secctx[SECMARK_SECCTX_MAX];
  22. __u32 secid;
  23. };
  24. #endif /*_XT_SECMARK_H_target */