diff --git a/netlink.c b/netlink.c index 6536f8e8..ff4c9ff5 100644 --- a/netlink.c +++ b/netlink.c @@ -37,6 +37,7 @@ #include "xlat/netlink_types.h" #include "xlat/nl_audit_types.h" #include "xlat/nl_route_types.h" +#include "xlat/nl_selinux_types.h" #include "xlat/nl_sock_diag_types.h" #undef NLMSG_HDRLEN @@ -99,6 +100,7 @@ static const struct { } nlmsg_types[] = { [NETLINK_AUDIT] = { nl_audit_types, "AUDIT_???" }, [NETLINK_ROUTE] = { nl_route_types, "RTM_???" }, + [NETLINK_SELINUX] = { nl_selinux_types, "SELNL_MSG_???" }, [NETLINK_SOCK_DIAG] = { nl_sock_diag_types, "SOCK_DIAG_???" } }; diff --git a/xlat/nl_selinux_types.in b/xlat/nl_selinux_types.in new file mode 100644 index 00000000..1ac46053 --- /dev/null +++ b/xlat/nl_selinux_types.in @@ -0,0 +1,2 @@ +SELNL_MSG_SETENFORCE 0x10 +SELNL_MSG_POLICYLOAD 0x11