audit: get rid of *NO* daemon at audit_pid=0 message
authorRichard Guy Briggs <rgb@redhat.com>
Tue, 26 Nov 2013 23:49:12 +0000 (18:49 -0500)
committerEric Paris <eparis@redhat.com>
Tue, 14 Jan 2014 03:31:07 +0000 (22:31 -0500)
commit04ee1a3b8f0584099370f8501ac785fd5d2ed6ff
tree7efec1326aa33043d9c69b28ff45c1df9934e3a0
parent61c0ee8792165f0de7c4aa619343998a6966c1ef
audit: get rid of *NO* daemon at audit_pid=0 message

kauditd_send_skb is called after audit_pid was checked to be non-zero.

However, it can be set to 0 due to auditd exiting while kauditd_send_skb
is still executed and this can result in a spurious warning about missing
auditd.

Re-check audit_pid before printing the message.

Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Cc: Eric Paris <eparis@redhat.com>
Cc: linux-kernel@vger.kernel.org
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/audit.c