audit: remove newline accidentally added during session id helper refactor
authorRichard Guy Briggs <rgb@redhat.com>
Wed, 18 Sep 2013 15:17:43 +0000 (11:17 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 5 Nov 2013 16:07:09 +0000 (11:07 -0500)
A newline was accidentally added during session ID helper refactorization in
commit 4d3fb709.  This needlessly uses up buffer space, messes up syslog
formatting and makes userspace processing less efficient.  Remove it.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/audit.c

index 97c1ab9..9069965 100644 (file)
@@ -1388,7 +1388,7 @@ void audit_log_session_info(struct audit_buffer *ab)
        u32 sessionid = audit_get_sessionid(current);
        uid_t auid = from_kuid(&init_user_ns, audit_get_loginuid(current));
 
-       audit_log_format(ab, " auid=%u ses=%u\n", auid, sessionid);
+       audit_log_format(ab, " auid=%u ses=%u", auid, sessionid);
 }
 
 void audit_log_key(struct audit_buffer *ab, char *key)