• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Netlink event notifications for SELinux.
3  *
4  * Author: James Morris <jmorris@redhat.com>
5  */
6 #ifndef _LINUX_SELINUX_NETLINK_H
7 #define _LINUX_SELINUX_NETLINK_H
8 
9 /* Message types. */
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 
17 /* Multicast groups */
18 #define SELNL_GRP_NONE		0x00000000
19 #define SELNL_GRP_AVC		0x00000001	/* AVC notifications */
20 #define SELNL_GRP_ALL		0xffffffff
21 
22 /* Message structures */
23 struct selnl_msg_setenforce {
24 	int32_t val;
25 };
26 
27 struct selnl_msg_policyload {
28 	uint32_t seqno;
29 };
30 
31 #endif				/* _LINUX_SELINUX_NETLINK_H */
32