summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/kernel-parameters.txt4
-rw-r--r--kernel/audit.c20
2 files changed, 23 insertions, 1 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 6f138280cdef..ab86766e28cb 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -467,6 +467,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
Format: { "0" | "1" } (0 = disabled, 1 = enabled)
Default: unset
+ audit_backlog_limit= [KNL] Set the audit queue size limit.
+ Format: <int> (must be >=0)
+ Default: 64
+
baycom_epp= [HW,AX25]
Format: <io>,<mode>
diff --git a/kernel/audit.c b/kernel/audit.c
index b8fa4bf8563b..833f8e2003b7 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1099,9 +1099,27 @@ static int __init audit_enable(char *str)
return 1;
}
-
__setup("audit=", audit_enable);
+/* Process kernel command-line parameter at boot time.
+ * audit_backlog_limit=<n> */
+static int __init audit_backlog_limit_set(char *str)
+{
+ long int audit_backlog_limit_arg;
+ pr_info("audit_backlog_limit: ");
+ if (kstrtol(str, 0, &audit_backlog_limit_arg)) {
+ printk("using default of %d, unable to parse %s\n",
+ audit_backlog_limit, str);
+ return 1;
+ }
+ if (audit_backlog_limit_arg >= 0)
+ audit_backlog_limit = (int)audit_backlog_limit_arg;
+ printk("%d\n", audit_backlog_limit);
+
+ return 1;
+}
+__setup("audit_backlog_limit=", audit_backlog_limit_set);
+
static void audit_buffer_free(struct audit_buffer *ab)
{
unsigned long flags;