#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/if.h>
#include <linux/inet_diag.h>
#include <linux/xfrm.h>
#include <linux/audit.h>
#include <linux/sock_diag.h>
#include "flask.h"
#include "av_permissions.h"
#include "security.h"
struct nlmsg_perm { … };
static const struct nlmsg_perm nlmsg_route_perms[] = …;
static const struct nlmsg_perm nlmsg_tcpdiag_perms[] = …;
static const struct nlmsg_perm nlmsg_xfrm_perms[] = …;
static const struct nlmsg_perm nlmsg_audit_perms[] = …;
static int nlmsg_perm(u16 nlmsg_type, u32 *perm, const struct nlmsg_perm *tab, size_t tabsize)
{ … }
int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm)
{ … }