diff options
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index d7249fcdc442..0072b1d8b258 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -1095,7 +1095,7 @@ static int audit_log_single_execve_arg(struct audit_context *context, | |||
1095 | audit_log_format(*ab, "[%d]", i); | 1095 | audit_log_format(*ab, "[%d]", i); |
1096 | audit_log_format(*ab, "="); | 1096 | audit_log_format(*ab, "="); |
1097 | if (has_cntl) | 1097 | if (has_cntl) |
1098 | audit_log_hex(*ab, buf, to_send); | 1098 | audit_log_n_hex(*ab, buf, to_send); |
1099 | else | 1099 | else |
1100 | audit_log_format(*ab, "\"%s\"", buf); | 1100 | audit_log_format(*ab, "\"%s\"", buf); |
1101 | audit_log_format(*ab, "\n"); | 1101 | audit_log_format(*ab, "\n"); |
@@ -1307,7 +1307,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts | |||
1307 | struct audit_aux_data_sockaddr *axs = (void *)aux; | 1307 | struct audit_aux_data_sockaddr *axs = (void *)aux; |
1308 | 1308 | ||
1309 | audit_log_format(ab, "saddr="); | 1309 | audit_log_format(ab, "saddr="); |
1310 | audit_log_hex(ab, axs->a, axs->len); | 1310 | audit_log_n_hex(ab, axs->a, axs->len); |
1311 | break; } | 1311 | break; } |
1312 | 1312 | ||
1313 | case AUDIT_FD_PAIR: { | 1313 | case AUDIT_FD_PAIR: { |
@@ -1371,8 +1371,8 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts | |||
1371 | default: | 1371 | default: |
1372 | /* log the name's directory component */ | 1372 | /* log the name's directory component */ |
1373 | audit_log_format(ab, " name="); | 1373 | audit_log_format(ab, " name="); |
1374 | audit_log_n_untrustedstring(ab, n->name_len, | 1374 | audit_log_n_untrustedstring(ab, n->name, |
1375 | n->name); | 1375 | n->name_len); |
1376 | } | 1376 | } |
1377 | } else | 1377 | } else |
1378 | audit_log_format(ab, " name=(null)"); | 1378 | audit_log_format(ab, " name=(null)"); |