audit: minimize our use of audit_log_format()
There are some cases where we are making multiple audit_log_format() calls in a row, for no apparent reason. Squash these down to a single audit_log_format() call whenever possible. Acked-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
@@ -246,8 +246,7 @@ static void audit_watch_log_rule_change(struct audit_krule *r, struct audit_watc
|
||||
if (!ab)
|
||||
return;
|
||||
audit_log_session_info(ab);
|
||||
audit_log_format(ab, "op=%s", op);
|
||||
audit_log_format(ab, " path=");
|
||||
audit_log_format(ab, "op=%s path=", op);
|
||||
audit_log_untrustedstring(ab, w->path);
|
||||
audit_log_key(ab, r->filterkey);
|
||||
audit_log_format(ab, " list=%d res=1", r->listnr);
|
||||
|
Reference in New Issue
Block a user