]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
audit: fix whitespace in CWD record
authorSteve Grubb <sgrubb@redhat.com>
Thu, 14 Jul 2016 14:59:19 +0000 (10:59 -0400)
committerPaul Moore <paul@paul-moore.com>
Thu, 14 Jul 2016 21:47:43 +0000 (17:47 -0400)
Fix the whitespace in the CWD record

Signed-off-by: Steve Grubb <sgrubb@redhat.com>
[PM: fixed subject line]
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditsc.c

index ec4c552876a7c92b795c425585528f68c8c11caa..aa3feec4df148ff5f007e8eea7ff55cbbda5b165 100644 (file)
@@ -1430,7 +1430,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
        if (context->pwd.dentry && context->pwd.mnt) {
                ab = audit_log_start(context, GFP_KERNEL, AUDIT_CWD);
                if (ab) {
-                       audit_log_d_path(ab, " cwd=", &context->pwd);
+                       audit_log_d_path(ab, "cwd=", &context->pwd);
                        audit_log_end(ab);
                }
        }