diff options
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index e07ad2340dbe..6194c50e2039 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -1450,6 +1450,15 @@ void audit_log_d_path(struct audit_buffer *ab, const char *prefix, | |||
1450 | kfree(pathname); | 1450 | kfree(pathname); |
1451 | } | 1451 | } |
1452 | 1452 | ||
1453 | void audit_log_key(struct audit_buffer *ab, char *key) | ||
1454 | { | ||
1455 | audit_log_format(ab, " key="); | ||
1456 | if (key) | ||
1457 | audit_log_untrustedstring(ab, key); | ||
1458 | else | ||
1459 | audit_log_format(ab, "(null)"); | ||
1460 | } | ||
1461 | |||
1453 | /** | 1462 | /** |
1454 | * audit_log_end - end one audit record | 1463 | * audit_log_end - end one audit record |
1455 | * @ab: the audit_buffer | 1464 | * @ab: the audit_buffer |