Skip to contentSkip to conversation

Fix whitespace in CWD record

PATCH In review Steve Grubb 2 participants 2 messages Jul 14, 2016 Audit

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix whitespace in CWD record

Fix the whitespace in the CWD record

---
 kernel/auditsc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/auditsc.c +1 -1
diff -urp linux-4.7.0-0.rc4.git1.1.fc23.x86_64.orig/kernel/auditsc.c linux-4.7.0-0.rc4.git1.1.fc23.x86_64/kernel/auditsc.c
@@ -1426,7 +1426,7 @@ static void audit_log_exit(struct audit_
 	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);
 		}
 	}
maintainer
#1 lore raw
Quoted 6 lines · Steve Grubb

Fix the whitespace in the CWD record

---
 kernel/auditsc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Generally I don't like merging patches this late, but this patch is so trivial I'll make an exception. Also, I fixed it this time, but in the future please prefix your patch subject lines with the subsystem name, e.g. "audit: fix whitespace in CWD record".

Quoted 12 lines

diff -urp linux-4.7.0-0.rc4.git1.1.fc23.x86_64.orig/kernel/auditsc.c linux-4.7.0-0.rc4.git1.1.fc23.x86_64/kernel/auditsc.c

kernel/auditsc.c 2016-07-14 09:56:50.222227280 -0400 renamed from kernel/auditsc.c 2016-06-25 12:44:41.756440052 -0400 +1 -1
@@ -1426,7 +1426,7 @@ static void audit_log_exit(struct audit_
        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);
                }
        }
Signature · 2 lines
paul moore
www.paul-moore.com