linux/security/selinux/nlmsgtab.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Netlink message type permission tables, for user generated messages.
 *
 * Author: James Morris <[email protected]>
 *
 * Copyright (C) 2004 Red Hat, Inc., James Morris <[email protected]>
 */
#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)
{}