]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
audit: initialize the audit subsystem as early as possible
authorPaul Moore <paul@paul-moore.com>
Fri, 1 Sep 2017 13:44:44 +0000 (09:44 -0400)
committerPaul Moore <paul@paul-moore.com>
Fri, 10 Nov 2017 21:07:46 +0000 (16:07 -0500)
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>
kernel/audit.c

index ec3d0802734d3e877a8bfc5da90c9a6f00b5de27..db71c45ea6f8c0e0eca72d54ea08ffa846baa176 100644 (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)