History

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).

Julien Gomes committed 9 years ago

Commit 5f729ea1 parent 94df30a2 files · +17 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/rtnetlink.h+4−0
@@ -669,6 +669,10 @@ enum rtnetlink_groups { · 668 unmodified lines
669669 #define RTNLGRP_NSID RTNLGRP_NSID
670670 RTNLGRP_MPLS_NETCONF,
671671 #define RTNLGRP_MPLS_NETCONF RTNLGRP_MPLS_NETCONF
672+ RTNLGRP_IPV4_MROUTE_R,
673+#define RTNLGRP_IPV4_MROUTE_R RTNLGRP_IPV4_MROUTE_R
674+ RTNLGRP_IPV6_MROUTE_R,
675+#define RTNLGRP_IPV6_MROUTE_R RTNLGRP_IPV6_MROUTE_R
672676 __RTNLGRP_MAX
673677 };
674678 #define RTNLGRP_MAX (__RTNLGRP_MAX - 1)