Skip to content
Snippets Groups Projects
Commit 1ce319f1 authored by Eric Paris's avatar Eric Paris
Browse files

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: default avatarEric Paris <eparis@redhat.com>
parent 0e23bacc
No related branches found
No related tags found
No related merge requests found
...@@ -1010,13 +1010,10 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) ...@@ -1010,13 +1010,10 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
spin_unlock(&tsk->sighand->siglock); spin_unlock(&tsk->sighand->siglock);
audit_log_common_recv_msg(&ab, AUDIT_CONFIG_CHANGE); audit_log_common_recv_msg(&ab, AUDIT_CONFIG_CHANGE);
audit_log_format(ab, " op=tty_set" audit_log_format(ab, " op=tty_set old-enabled=%d new-enabled=%d"
" old-enabled=%d old-log_passwd=%d" " old-log_passwd=%d new-log_passwd=%d res=%d",
" new-enabled=%d new-log_passwd=%d" old.enabled, s.enabled, old.log_passwd,
" res=%d", s.log_passwd, !err);
old.enabled, old.log_passwd,
s.enabled, s.log_passwd,
!err);
audit_log_end(ab); audit_log_end(ab);
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment