Blame libselinux/src/selinux_netlink.h
|
Chris PeBenito |
473ea7 |
/*
|
|
Chris PeBenito |
473ea7 |
* Netlink event notifications for SELinux.
|
|
Chris PeBenito |
473ea7 |
*
|
|
Chris PeBenito |
473ea7 |
* Author: James Morris <jmorris@redhat.com>
|
|
Chris PeBenito |
473ea7 |
*/
|
|
Chris PeBenito |
473ea7 |
#ifndef _LINUX_SELINUX_NETLINK_H
|
|
Chris PeBenito |
473ea7 |
#define _LINUX_SELINUX_NETLINK_H
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
/* Message types. */
|
|
Chris PeBenito |
473ea7 |
#define SELNL_MSG_BASE 0x10
|
|
Chris PeBenito |
473ea7 |
enum {
|
|
Chris PeBenito |
473ea7 |
SELNL_MSG_SETENFORCE = SELNL_MSG_BASE,
|
|
Chris PeBenito |
473ea7 |
SELNL_MSG_POLICYLOAD,
|
|
Chris PeBenito |
473ea7 |
SELNL_MSG_MAX
|
|
Chris PeBenito |
473ea7 |
};
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
/* Multicast groups */
|
|
Chris PeBenito |
473ea7 |
#define SELNL_GRP_NONE 0x00000000
|
|
Chris PeBenito |
473ea7 |
#define SELNL_GRP_AVC 0x00000001 /* AVC notifications */
|
|
Chris PeBenito |
473ea7 |
#define SELNL_GRP_ALL 0xffffffff
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
/* Message structures */
|
|
Chris PeBenito |
473ea7 |
struct selnl_msg_setenforce {
|
|
Chris PeBenito |
473ea7 |
int32_t val;
|
|
Chris PeBenito |
473ea7 |
};
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
struct selnl_msg_policyload {
|
|
Chris PeBenito |
473ea7 |
u_int32_t seqno;
|
|
Chris PeBenito |
473ea7 |
};
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
#endif /* _LINUX_SELINUX_NETLINK_H */
|