summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-09-01 09:44:44 -0400
committerPaul Moore <paul@paul-moore.com>2017-11-10 16:07:46 -0500
commitbe4104abf25c63ccef36e1e06262c73c0df9fd60 (patch)
tree157da0081d61dbc94e6f718455fd0e1153536bd7 /kernel/audit.c
parent173743dd99a49c956b124a74c8aacb0384739a4c (diff)
downloadlinux-be4104abf25c63ccef36e1e06262c73c0df9fd60.tar.bz2
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>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
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)