diff options
| author | Eric Paris <eparis@redhat.com> | 2013-04-11 11:25:00 -0400 |
|---|---|---|
| committer | Eric Paris <eparis@redhat.com> | 2013-04-11 11:26:03 -0400 |
| commit | f7616102d6f62d51cffb796d4672ad81fef00fea (patch) | |
| tree | c9bb4f2019294b6b956f6ee3407f6d6624b96a62 /kernel | |
| parent | e2c5adc88a0ffd4a715f630c3b83a1d5cbfd1cff (diff) | |
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 <sgrubb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 755 | else { | 755 | else { |
| 756 | int size; | 756 | int size; |
| 757 | 757 | ||
| 758 | audit_log_format(ab, " msg="); | 758 | audit_log_format(ab, " data="); |
| 759 | size = nlmsg_len(nlh); | 759 | size = nlmsg_len(nlh); |
| 760 | if (size > 0 && | 760 | if (size > 0 && |
| 761 | ((unsigned char *)data)[size - 1] == '\0') | 761 | ((unsigned char *)data)[size - 1] == '\0') |
