]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: add restricted rtnl groups for ipv4 and ipv6 mroute
authorJulien Gomes <julien@arista.com>
Tue, 20 Jun 2017 20:54:16 +0000 (13:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jun 2017 15:22:52 +0000 (11:22 -0400)
commit540d76e0a2f93e804144f1ffa5ec3ef509584a6c
treed50fbf36c771f509c2aa915a20f09e0c143f2598
parentd7d6f934508aa99f617299d7c6d5d17a4baca925
rtnetlink: add restricted rtnl groups for ipv4 and ipv6 mroute

Add RTNLGRP_{IPV4,IPV6}_MROUTE_R as two new restricted groups for the
NETLINK_ROUTE family.
Binding to these groups specifically requires CAP_NET_ADMIN to allow
multicast of sensitive messages (e.g. mroute cache reports).

Suggested-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Julien Gomes <julien@arista.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h
net/core/rtnetlink.c