Skip to content

Commit

Permalink
audit: fix message spacing printing auid
Browse files Browse the repository at this point in the history
The helper function didn't include a leading space, so it was jammed
against the previous text in the audit record.

Signed-off-by: Eric Paris <eparis@redhat.com>
  • Loading branch information
Eric Paris committed May 8, 2013
1 parent 82d8da0 commit 2a0b4be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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\n", auid, sessionid);
}

void audit_log_key(struct audit_buffer *ab, char *key)
Expand Down

0 comments on commit 2a0b4be

Please sign in to comment.