]> git.baikalelectronics.ru Git - kernel.git/commit
audit: make sure we never skip the multicast broadcast
authorPaul Moore <paul@paul-moore.com>
Mon, 12 Jun 2017 15:53:09 +0000 (11:53 -0400)
committerPaul Moore <paul@paul-moore.com>
Fri, 16 Jun 2017 15:51:00 +0000 (11:51 -0400)
commit0d4f7cf8c04ff4dc6a3c939912939d3712c5ef2c
tree3be1a586eff217110d3be300432b81aa63c71dff
parent1646689c95f0a6d81b57b69d219237a7e49027f3
audit: make sure we never skip the multicast broadcast

When the auditd connection is reset, either intentionally or due to
a failure, any records that were in the main backlog queue would not
be sent in a multicast broadcast.  This patch fixes this problem by
not flushing the main backlog queue on a connection reset, the main
kauditd_thread() will take care of that normally.

Resolves: https://github.com/linux-audit/audit-kernel/issues/41
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit.c