diff options
author | Paul Moore <paul@paul-moore.com> | 2018-08-03 00:56:50 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-11-27 02:40:00 +0300 |
commit | d0a3f18a70f2d9700bf9f5e9c4a505472388a7c1 (patch) | |
tree | b316add3dac38538bff1756da5d4c8c4f2fd2950 /kernel/audit_fsnotify.c | |
parent | c8fc5d49c341805fee7fc295f2ea8a709f78aec4 (diff) | |
download | linux-d0a3f18a70f2d9700bf9f5e9c4a505472388a7c1.tar.xz |
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>
Diffstat (limited to 'kernel/audit_fsnotify.c')
-rw-r--r-- | kernel/audit_fsnotify.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/audit_fsnotify.c b/kernel/audit_fsnotify.c index f90ffa699e5b..cf4512a33675 100644 --- a/kernel/audit_fsnotify.c +++ b/kernel/audit_fsnotify.c @@ -131,8 +131,7 @@ static void audit_mark_log_rule_change(struct audit_fsnotify_mark *audit_mark, c if (unlikely(!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, audit_mark->path); audit_log_key(ab, rule->filterkey); audit_log_format(ab, " list=%d res=1", rule->listnr); |