Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1669938
| From | Julien Gomes <julien@arista.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next v2 1/4] rtnetlink: add NEWCACHEREPORT message type |
| Date | 2017-06-19 22:50 +0200 |
| Message-ID | <tUbMu-7Ag-23@gated-at.bofh.it> (permalink) |
| References | <tUbMt-7Ag-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
New NEWCACHEREPORT message type to be used for cache reports sent
via Netlink, effectively allowing splitting cache report reception from
mroute programming.
Suggested-by: Ryan Halbrook <halbrook@arista.com>
Signed-off-by: Julien Gomes <julien@arista.com>
---
include/uapi/linux/rtnetlink.h | 3 +++
security/selinux/nlmsgtab.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h
index 564790e854f7..cd1afb900929 100644
--- a/include/uapi/linux/rtnetlink.h
+++ b/include/uapi/linux/rtnetlink.h
@@ -146,6 +146,9 @@ enum {
RTM_GETSTATS = 94,
#define RTM_GETSTATS RTM_GETSTATS
+ RTM_NEWCACHEREPORT = 96,
+#define RTM_NEWCACHEREPORT RTM_NEWCACHEREPORT
+
__RTM_MAX,
#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
};
diff --git a/security/selinux/nlmsgtab.c b/security/selinux/nlmsgtab.c
index 5aeaf30b7a13..7b7433a1a34c 100644
--- a/security/selinux/nlmsgtab.c
+++ b/security/selinux/nlmsgtab.c
@@ -79,6 +79,7 @@ static const struct nlmsg_perm nlmsg_route_perms[] =
{ RTM_GETNSID, NETLINK_ROUTE_SOCKET__NLMSG_READ },
{ RTM_NEWSTATS, NETLINK_ROUTE_SOCKET__NLMSG_READ },
{ RTM_GETSTATS, NETLINK_ROUTE_SOCKET__NLMSG_READ },
+ { RTM_NEWCACHEREPORT, NETLINK_ROUTE_SOCKET__NLMSG_READ },
};
static const struct nlmsg_perm nlmsg_tcpdiag_perms[] =
@@ -158,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_NEWSTATS + 3));
+ BUILD_BUG_ON(RTM_MAX != (RTM_NEWCACHEREPORT + 3));
err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms,
sizeof(nlmsg_route_perms));
break;
--
2.13.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net-next v2 0/4] ipmr/ip6mr: add Netlink notifications on cache reports Julien Gomes <julien@arista.com> - 2017-06-19 22:50 +0200
[PATCH net-next v2 3/4] ipmr: add netlink notifications on igmpmsg cache reports Julien Gomes <julien@arista.com> - 2017-06-19 22:50 +0200
Re: [PATCH net-next v2 3/4] ipmr: add netlink notifications on igmpmsg cache reports Nikolay Aleksandrov <nikolay@cumulusnetworks.com> - 2017-06-20 11:40 +0200
[PATCH net-next v2 4/4] ip6mr: add netlink notifications on mrt6msg cache reports Julien Gomes <julien@arista.com> - 2017-06-19 22:50 +0200
Re: [PATCH net-next v2 4/4] ip6mr: add netlink notifications on mrt6msg cache reports Nikolay Aleksandrov <nikolay@cumulusnetworks.com> - 2017-06-20 12:00 +0200
[PATCH net-next v2 1/4] rtnetlink: add NEWCACHEREPORT message type Julien Gomes <julien@arista.com> - 2017-06-19 22:50 +0200
Re: [PATCH net-next v2 1/4] rtnetlink: add NEWCACHEREPORT message type Nikolay Aleksandrov <nikolay@cumulusnetworks.com> - 2017-06-20 11:00 +0200
[PATCH net-next v2 2/4] rtnetlink: add restricted rtnl groups for ipv4 and ipv6 mroute Julien Gomes <julien@arista.com> - 2017-06-19 22:50 +0200
Re: [PATCH net-next v2 2/4] rtnetlink: add restricted rtnl groups for ipv4 and ipv6 mroute Nikolay Aleksandrov <nikolay@cumulusnetworks.com> - 2017-06-20 11:00 +0200
Re: [PATCH net-next v2 0/4] ipmr/ip6mr: add Netlink notifications on cache reports David Miller <davem@davemloft.net> - 2017-06-20 21:30 +0200
csiph-web