[RFC PATCH 2/5] audit: initialize the audit subsystem as early as possible

Paul Moore pmoore at redhat.com
Fri Sep 1 13:44:44 UTC 2017


From: Paul Moore <paul at paul-moore.com>

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

Signed-off-by: Paul Moore <paul at paul-moore.com>
---
 kernel/audit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/audit.c b/kernel/audit.c
index 33b00ec2157f..de8a9b8465ae 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1561,7 +1561,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)




More information about the Linux-audit mailing list