1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _LINUX_SELINUX_NETLINK_H 8 #define _LINUX_SELINUX_NETLINK_H 9 #include <linux/types.h> 10 #define SELNL_MSG_BASE 0x10 11 enum { 12 SELNL_MSG_SETENFORCE = SELNL_MSG_BASE, 13 SELNL_MSG_POLICYLOAD, 14 SELNL_MSG_MAX 15 }; 16 #define SELNL_GRP_NONE 0x00000000 17 #define SELNL_GRP_AVC 0x00000001 18 #define SELNL_GRP_ALL 0xffffffff 19 enum selinux_nlgroups { 20 SELNLGRP_NONE, 21 #define SELNLGRP_NONE SELNLGRP_NONE 22 SELNLGRP_AVC, 23 #define SELNLGRP_AVC SELNLGRP_AVC 24 __SELNLGRP_MAX 25 }; 26 #define SELNLGRP_MAX (__SELNLGRP_MAX - 1) 27 struct selnl_msg_setenforce { 28 __s32 val; 29 }; 30 struct selnl_msg_policyload { 31 __u32 seqno; 32 }; 33 #endif 34