]> 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)
commit185045cf8af251a647ec559cc041543cd051f508
tree25aac77a82c806eaf75708d9aa7e477f27acb2c4
parenta2949d5fb916cb37bad20045eb4c5cd3a5ad41bd
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