diff options
author | Patrick McHardy <kaber@trash.net> | 2005-08-14 22:25:47 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 19:00:34 -0400 |
commit | 43e943c32b9213b5d25407b281c94aaa474fd9a6 (patch) | |
tree | 7844a1aa95d697ae378bc799085e1b29eb0b8a48 /security/selinux | |
parent | ad93e266a17c6f606e96304c866eb73665ae34fa (diff) |
[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>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c index 341dbe2579be..0f7be6524555 100644 --- a/security/selinux/netlink.c +++ b/security/selinux/netlink.c | |||
@@ -80,6 +80,7 @@ static void selnl_notify(int msgtype, void *data) | |||
80 | nlh = NLMSG_PUT(skb, 0, 0, msgtype, len); | 80 | nlh = NLMSG_PUT(skb, 0, 0, msgtype, len); |
81 | selnl_add_payload(nlh, len, msgtype, data); | 81 | selnl_add_payload(nlh, len, msgtype, data); |
82 | nlh->nlmsg_len = skb->tail - tmp; | 82 | nlh->nlmsg_len = skb->tail - tmp; |
83 | NETLINK_CB(skb).dst_groups = SELNL_GRP_AVC; | ||
83 | netlink_broadcast(selnl, skb, 0, SELNL_GRP_AVC, GFP_USER); | 84 | netlink_broadcast(selnl, skb, 0, SELNL_GRP_AVC, GFP_USER); |
84 | out: | 85 | out: |
85 | return; | 86 | return; |