Skip to contentSkip to conversation

netlink: add missing netlink message types to selinux perm table

PATCH In review Cong Wang 1 participant 2 messages Dec 4, 2012 – Dec 5, 2012

Subsystems (3)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 netlink: add missing netlink message types to selinux perm table

RTM_NEWNETCONF and RTM_GETNETCONF are missing in this table.

Cc David S. Miller <[email protected]>

---

security/selinux/nlmsgtab.c +2 -0
index d309e7f..0e7a89b 100644
@@ -67,6 +67,8 @@ static struct nlmsg_perm nlmsg_route_perms[] =
 	{ RTM_GETADDRLABEL,	NETLINK_ROUTE_SOCKET__NLMSG_READ  },
 	{ RTM_GETDCB,		NETLINK_ROUTE_SOCKET__NLMSG_READ  },
 	{ RTM_SETDCB,		NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
+	{ RTM_NEWNETCONF,	NETLINK_ROUTE_SOCKET__NLMSG_WRITE },
+	{ RTM_GETNETCONF,	NETLINK_ROUTE_SOCKET__NLMSG_READ  },
 };
 
 static struct nlmsg_perm nlmsg_tcpdiag_perms[] =
author
#1 lore raw
Quoted 1 line · Cong Wang

RTM_NEWNETCONF and RTM_GETNETCONF are missing in this table.

This patch has conflicts with "v3 bridge: export multicast database via netlink", please drop this for now, I will resend it later.

Thanks.