1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _LINUX_SELINUX_NETLINK_H 7 #define _LINUX_SELINUX_NETLINK_H 8 #include <linux/types.h> 9 #define SELNL_MSG_BASE 0x10 10 enum { 11 SELNL_MSG_SETENFORCE = SELNL_MSG_BASE, 12 SELNL_MSG_POLICYLOAD, 13 SELNL_MSG_MAX 14 }; 15 #ifndef __KERNEL__ 16 #define SELNL_GRP_NONE 0x00000000 17 #define SELNL_GRP_AVC 0x00000001 18 #define SELNL_GRP_ALL 0xffffffff 19 #endif 20 enum selinux_nlgroups { 21 SELNLGRP_NONE, 22 #define SELNLGRP_NONE SELNLGRP_NONE 23 SELNLGRP_AVC, 24 #define SELNLGRP_AVC SELNLGRP_AVC 25 __SELNLGRP_MAX 26 }; 27 #define SELNLGRP_MAX (__SELNLGRP_MAX - 1) 28 struct selnl_msg_setenforce { 29 __s32 val; 30 }; 31 struct selnl_msg_policyload { 32 __u32 seqno; 33 }; 34 #endif 35