From: Eric Paris Date: Thu, 11 Apr 2013 15:25:00 +0000 (-0400) Subject: audit: use data= not msg= for AUDIT_USER_TTY messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7616102d6f62d51cffb796d4672ad81fef00fea;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git audit: use data= not msg= for AUDIT_USER_TTY messages 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 Signed-off-by: Eric Paris --- diff --git a/kernel/audit.c b/kernel/audit.c index 02a5d9eefa82..c45e6d2809d7 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -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')