blob: 88ef55175e9fff2058ac97832f4f936f6d5f4fdd [file] [log] [blame]
Stephen Smalleyf0740362012-01-04 12:30:47 -05001/*
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
11enum {
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 */
23struct selnl_msg_setenforce {
24 int32_t val;
25};
26
27struct selnl_msg_policyload {
28 uint32_t seqno;
29};
30
31#endif /* _LINUX_SELINUX_NETLINK_H */