diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-07-23 09:23:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-24 05:44:12 +0200 |
commit | 32a4f5ecd7381f30ae3bb36dea77a150ba68af2e (patch) | |
tree | b6d291d08192b09e78cd72791b53b53e3852af65 /security | |
parent | net: sched: Avoid implicit chain 0 creation (diff) | |
download | linux-32a4f5ecd7381f30ae3bb36dea77a150ba68af2e.tar.xz linux-32a4f5ecd7381f30ae3bb36dea77a150ba68af2e.zip |
net: sched: introduce chain object to uapi
Allow user to create, destroy, get and dump chain objects. Do that by
extending rtnl commands by the chain-specific ones. User will now be
able to explicitly create or destroy chains (so far this was done only
automatically according the filter/act needs and refcounting). Also, the
user will receive notification about any chain creation or destuction.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/nlmsgtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/nlmsgtab.c b/security/selinux/nlmsgtab.c index 7b7433a1a34c..74b951f55608 100644 --- a/security/selinux/nlmsgtab.c +++ b/security/selinux/nlmsgtab.c @@ -159,7 +159,7 @@ int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) switch (sclass) { case SECCLASS_NETLINK_ROUTE_SOCKET: /* RTM_MAX always point to RTM_SETxxxx, ie RTM_NEWxxx + 3 */ - BUILD_BUG_ON(RTM_MAX != (RTM_NEWCACHEREPORT + 3)); + BUILD_BUG_ON(RTM_MAX != (RTM_NEWCHAIN + 3)); err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, sizeof(nlmsg_route_perms)); break; |