Skip to content
Commit 11dd2666 authored by Greg Edwards's avatar Greg Edwards Committed by Paul Moore
Browse files

audit: do not panic on invalid boot parameter



If you pass in an invalid audit boot parameter value, e.g. "audit=off",
the kernel panics very early in boot before the regular console is
initialized.  Unless you have earlyprintk enabled, there is no
indication of what the problem is on the console.

Convert the panic() calls to pr_err(), and leave auditing enabled if an
invalid parameter value was passed in.

Modify the parameter to also accept "on" or "off" as valid values, and
update the documentation accordingly.

Signed-off-by: default avatarGreg Edwards <gedwards@ddn.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent ce423631
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment