aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/audit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index d272cc11dff4..33531d72e4a2 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -435,6 +435,9 @@ static void kauditd_send_multicast_skb(struct sk_buff *skb)
435 struct audit_net *aunet = net_generic(&init_net, audit_net_id); 435 struct audit_net *aunet = net_generic(&init_net, audit_net_id);
436 struct sock *sock = aunet->nlsk; 436 struct sock *sock = aunet->nlsk;
437 437
438 if (!netlink_has_listeners(sock, AUDIT_NLGRP_READLOG))
439 return;
440
438 /* 441 /*
439 * The seemingly wasteful skb_copy() rather than bumping the refcount 442 * The seemingly wasteful skb_copy() rather than bumping the refcount
440 * using skb_get() is necessary because non-standard mods are made to 443 * using skb_get() is necessary because non-standard mods are made to