audit: send multicast messages only if there are listeners
authorRichard Guy Briggs <rgb@redhat.com>
Wed, 23 Apr 2014 01:31:58 +0000 (21:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Apr 2014 01:42:27 +0000 (21:42 -0400)
commit7f74ecd788a8b2a122d4d8bdc4d517cc60b8b638
tree1b931b6b57e26b4f4fdfba0cb928fd55731493ad
parent451f921639fea4600dfb9ab2889332bdcc7b48d3
audit: send multicast messages only if there are listeners

Test first to see if there are any userspace multicast listeners bound to the
socket before starting the multicast send work.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/audit.c