netlink: add missing netlink message types to selinux perm table
Subsystems (3)
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]>
Signed-off-by Cong Wang <[email protected]>
---
security/selinux/nlmsgtab.c +2 -0
@@ -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[] =
Quoted 1 line · Cong Wang
RTM_NEWNETCONFandRTM_GETNETCONFare 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.