audit: fixup audit_init()
authorPaul Moore <paul@paul-moore.com>
Tue, 29 Nov 2016 21:53:23 +0000 (16:53 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 14 Dec 2016 18:06:04 +0000 (13:06 -0500)
commit6c9255645350ce2aecb7c3cd032d0e93d4a7a71a
treef3720064aba7115b99aa42216dc2da55403ce47f
parent55a6f170a413cd8dc7a3a52e5a326e1a87579b4f
audit: fixup audit_init()

Make sure everything is initialized before we start the kauditd_thread
and don't emit the "initialized" record until everything is finished.
We also panic with a descriptive message if we can't start the
kauditd_thread.

Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit.c