X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=kernel%2Fauditsc.c;h=2de95d1582bc54d97d7f7958e8a7691eaa8e690f;hb=9d9609851003ebed15957f0f2ce18492739ee124;hp=0b862cac6ca2e3f77b3dffe152e97c9f6575cce8;hpb=35fe4d0b1b12286a81938e9c5fdfaf639ac0ce5b;p=linux-2.6-block.git diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 0b862cac6ca2..2de95d1582bc 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -1137,7 +1137,7 @@ static int audit_log_single_execve_arg(struct audit_context *context, if (has_cntl) audit_log_n_hex(*ab, buf, to_send); else - audit_log_format(*ab, "\"%s\"", buf); + audit_log_string(*ab, buf); p += to_send; len_left -= to_send; @@ -1372,11 +1372,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts audit_log_task_info(ab, tsk); - if (context->filterkey) { - audit_log_format(ab, " key="); - audit_log_untrustedstring(ab, context->filterkey); - } else - audit_log_format(ab, " key=(null)"); + audit_log_key(ab, context->filterkey); audit_log_end(ab); for (aux = context->aux; aux; aux = aux->next) {