Skip to content

Commit

Permalink
audit: use data= not msg= for AUDIT_USER_TTY messages
Browse files Browse the repository at this point in the history
Userspace parsing libraries assume that msg= is only for userspace audit
records, not for user tty records.  Make this consistent with the other
tty records.

Reported-by: Steve Grubb <[email protected]>
Signed-off-by: Eric Paris <[email protected]>
  • Loading branch information
eparis committed Apr 11, 2013
1 parent e2c5adc commit f761610
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 @@ -755,7 +755,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
else {
int size;

audit_log_format(ab, " msg=");
audit_log_format(ab, " data=");
size = nlmsg_len(nlh);
if (size > 0 &&
((unsigned char *)data)[size - 1] == '\0')
Expand Down

0 comments on commit f761610

Please sign in to comment.