audit: move kaudit thread start from auditd registration to kaudit init
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 24 Jan 2013 18:15:12 +0000 (13:15 -0500)
committerEric Paris <eparis@redhat.com>
Mon, 8 Apr 2013 20:19:18 +0000 (16:19 -0400)
commit6ff5e45985c2fcb97947818f66d1eeaf9d6600b2
tree25aac77a82c806eaf75708d9aa7e477f27acb2c4
parent3320c5133dd83df58b8fbc529b5419e02ca16fe6
audit: move kaudit thread start from auditd registration to kaudit init

The kauditd_thread() task was started only after the auditd userspace daemon
registers itself with kaudit.  This was fine when only auditd consumed messages
from the kaudit netlink unicast socket.  With the addition of a multicast group
to that socket it is more convenient to have the thread start on init of the
kaudit kernel subsystem.

Signed-off-by: Richard Guy Briggs <rbriggs@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/audit.c