]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc897ca9bb5fd9184fb9f5b8713ae79f1257b1717
tree25aac77a82c806eaf75708d9aa7e477f27acb2c4
parent72dc96564cee4ef3985c8f53bde4325b296c3bca
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