blob: 989092bd6274b44585ccc0faf4f005a0d7b909b7 [file] [log] [blame]
James Morris5e6874cd2006-06-09 00:30:57 -07001#ifndef _XT_SECMARK_H_target
2#define _XT_SECMARK_H_target
3
Arnd Bergmann60c195c2009-02-26 00:51:43 +01004#include <linux/types.h>
5
James Morris5e6874cd2006-06-09 00:30:57 -07006/*
7 * This is intended for use by various security subsystems (but not
8 * at the same time).
9 *
10 * 'mode' refers to the specific security subsystem which the
11 * packets are being marked for.
12 */
13#define SECMARK_MODE_SEL 0x01 /* SELinux */
Eric Paris2606fd12010-10-13 16:24:41 -040014#define SECMARK_SECCTX_MAX 256
James Morris5e6874cd2006-06-09 00:30:57 -070015
16struct xt_secmark_target_info {
Arnd Bergmann60c195c2009-02-26 00:51:43 +010017 __u8 mode;
Eric Paris2606fd12010-10-13 16:24:41 -040018 __u32 secid;
19 char secctx[SECMARK_SECCTX_MAX];
James Morris5e6874cd2006-06-09 00:30:57 -070020};
21
22#endif /*_XT_SECMARK_H_target */