From: Paul Moore Date: Fri, 1 Sep 2017 13:44:44 +0000 (-0400) Subject: audit: initialize the audit subsystem as early as possible X-Git-Tag: rel_imx_4.19.35_1.1.0~11288^2~7 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=be4104abf25c63ccef36e1e06262c73c0df9fd60;p=linux.git 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 Signed-off-by: Paul Moore --- diff --git a/kernel/audit.c b/kernel/audit.c index ec3d0802734d..db71c45ea6f8 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -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)