diff options
-rw-r--r-- | Documentation/kernel-parameters.txt | 4 | ||||
-rw-r--r-- | kernel/audit.c | 20 |
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. | |||
467 | Format: { "0" | "1" } (0 = disabled, 1 = enabled) | 467 | Format: { "0" | "1" } (0 = disabled, 1 = enabled) |
468 | Default: unset | 468 | Default: unset |
469 | 469 | ||
470 | audit_backlog_limit= [KNL] Set the audit queue size limit. | ||
471 | Format: <int> (must be >=0) | ||
472 | Default: 64 | ||
473 | |||
470 | baycom_epp= [HW,AX25] | 474 | baycom_epp= [HW,AX25] |
471 | Format: <io>,<mode> | 475 | Format: <io>,<mode> |
472 | 476 | ||
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) | |||
1099 | 1099 | ||
1100 | return 1; | 1100 | return 1; |
1101 | } | 1101 | } |
1102 | |||
1103 | __setup("audit=", audit_enable); | 1102 | __setup("audit=", audit_enable); |
1104 | 1103 | ||
1104 | /* Process kernel command-line parameter at boot time. | ||
1105 | * audit_backlog_limit=<n> */ | ||
1106 | static int __init audit_backlog_limit_set(char *str) | ||
1107 | { | ||
1108 | long int audit_backlog_limit_arg; | ||
1109 | pr_info("audit_backlog_limit: "); | ||
1110 | if (kstrtol(str, 0, &audit_backlog_limit_arg)) { | ||
1111 | printk("using default of %d, unable to parse %s\n", | ||
1112 | audit_backlog_limit, str); | ||
1113 | return 1; | ||
1114 | } | ||
1115 | if (audit_backlog_limit_arg >= 0) | ||
1116 | audit_backlog_limit = (int)audit_backlog_limit_arg; | ||
1117 | printk("%d\n", audit_backlog_limit); | ||
1118 | |||
1119 | return 1; | ||
1120 | } | ||
1121 | __setup("audit_backlog_limit=", audit_backlog_limit_set); | ||
1122 | |||
1105 | static void audit_buffer_free(struct audit_buffer *ab) | 1123 | static void audit_buffer_free(struct audit_buffer *ab) |
1106 | { | 1124 | { |
1107 | unsigned long flags; | 1125 | unsigned long flags; |