aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2014-01-13 21:16:59 -0500
committerEric Paris <eparis@redhat.com>2014-01-13 22:33:41 -0500
commit1ce319f11ccc5ee5ed1bc1e020f1ac6e6d689c74 (patch)
treef3ea9e05a746a629d2c55c41ca2f0d2b4ecdbe0c /kernel/audit.c
parent0e23baccaae4f752cfa89cca44e84a439ed8bd13 (diff)
audit: reorder AUDIT_TTY_SET arguments
An admin is likely to want to see old and new values next to each other. Putting all of the old values followed by all of the new values is just hard to read as a human. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index b1d24a035ec9..9daf24361d53 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1010,13 +1010,10 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
1010 spin_unlock(&tsk->sighand->siglock); 1010 spin_unlock(&tsk->sighand->siglock);
1011 1011
1012 audit_log_common_recv_msg(&ab, AUDIT_CONFIG_CHANGE); 1012 audit_log_common_recv_msg(&ab, AUDIT_CONFIG_CHANGE);
1013 audit_log_format(ab, " op=tty_set" 1013 audit_log_format(ab, " op=tty_set old-enabled=%d new-enabled=%d"
1014 " old-enabled=%d old-log_passwd=%d" 1014 " old-log_passwd=%d new-log_passwd=%d res=%d",
1015 " new-enabled=%d new-log_passwd=%d" 1015 old.enabled, s.enabled, old.log_passwd,
1016 " res=%d", 1016 s.log_passwd, !err);
1017 old.enabled, old.log_passwd,
1018 s.enabled, s.log_passwd,
1019 !err);
1020 audit_log_end(ab); 1017 audit_log_end(ab);
1021 break; 1018 break;
1022 } 1019 }