It has become apparent that the name of the function currently labeled
"audit_panic" might mislead some developers.
This is due to the operation of the function, which may or may not
necessarily panic the kernel. A look at the function shows that there
are currently three different paths the function can take, only one of
which will cause a kernel panic:
static void audit_panic(const char *message)
{
switch (audit_failure)
{
case AUDIT_FAIL_SILENT:
break;
case AUDIT_FAIL_PRINTK:
printk(KERN_ERR "audit: %s\n", message);
break;
case AUDIT_FAIL_PANIC:
panic("audit: %s\n", message);
break;
}
}
The following simple patch renames the function "audit_panic" to
"audit_handle_failure" and updates all references to the function.
:-Dustin