16cd6a6acSopenharmony_ci/* 26cd6a6acSopenharmony_ci * Netlink event notifications for SELinux. 36cd6a6acSopenharmony_ci * 46cd6a6acSopenharmony_ci * Author: James Morris <jmorris@redhat.com> 56cd6a6acSopenharmony_ci */ 66cd6a6acSopenharmony_ci#ifndef _LINUX_SELINUX_NETLINK_H 76cd6a6acSopenharmony_ci#define _LINUX_SELINUX_NETLINK_H 86cd6a6acSopenharmony_ci 96cd6a6acSopenharmony_ci/* Message types. */ 106cd6a6acSopenharmony_ci#define SELNL_MSG_BASE 0x10 116cd6a6acSopenharmony_cienum { 126cd6a6acSopenharmony_ci SELNL_MSG_SETENFORCE = SELNL_MSG_BASE, 136cd6a6acSopenharmony_ci SELNL_MSG_POLICYLOAD, 146cd6a6acSopenharmony_ci SELNL_MSG_MAX 156cd6a6acSopenharmony_ci}; 166cd6a6acSopenharmony_ci 176cd6a6acSopenharmony_ci/* Multicast groups */ 186cd6a6acSopenharmony_ci#define SELNL_GRP_NONE 0x00000000 196cd6a6acSopenharmony_ci#define SELNL_GRP_AVC 0x00000001 /* AVC notifications */ 206cd6a6acSopenharmony_ci#define SELNL_GRP_ALL 0xffffffff 216cd6a6acSopenharmony_ci 226cd6a6acSopenharmony_ci/* Message structures */ 236cd6a6acSopenharmony_cistruct selnl_msg_setenforce { 246cd6a6acSopenharmony_ci int32_t val; 256cd6a6acSopenharmony_ci}; 266cd6a6acSopenharmony_ci 276cd6a6acSopenharmony_cistruct selnl_msg_policyload { 286cd6a6acSopenharmony_ci uint32_t seqno; 296cd6a6acSopenharmony_ci}; 306cd6a6acSopenharmony_ci 316cd6a6acSopenharmony_ci#endif /* _LINUX_SELINUX_NETLINK_H */ 32