Skip to content

Commit

Permalink
audit: initialize the audit subsystem as early as possible
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
pcmoore committed Nov 10, 2017
1 parent 173743d commit be4104a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be4104a

Please sign in to comment.