[NETLINK]: Fix missing dst_groups initializations in netlink_broadcast users
netlink_broadcast users must initialize NETLINK_CB(skb).dst_groups to the destination group mask for netlink_recvmsg. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ad93e266a1
commit
43e943c32b
@@ -80,6 +80,7 @@ static void selnl_notify(int msgtype, void *data)
|
||||
nlh = NLMSG_PUT(skb, 0, 0, msgtype, len);
|
||||
selnl_add_payload(nlh, len, msgtype, data);
|
||||
nlh->nlmsg_len = skb->tail - tmp;
|
||||
NETLINK_CB(skb).dst_groups = SELNL_GRP_AVC;
|
||||
netlink_broadcast(selnl, skb, 0, SELNL_GRP_AVC, GFP_USER);
|
||||
out:
|
||||
return;
|
||||
|
Reference in New Issue
Block a user