audit: initialize the audit subsystem as early as possible

We can't initialize the audit subsystem until after the network layer
is initialized (core_initcall), but do it soon after.

Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Paul Moore 2017-09-01 09:44:44 -04:00
parent 173743dd99
commit be4104abf2

View File

@ -1562,7 +1562,7 @@ static int __init audit_init(void)
return 0;
}
__initcall(audit_init);
postcore_initcall(audit_init);
/* Process kernel command-line parameter at boot time. audit=0 or audit=1. */
static int __init audit_enable(char *str)