diff options
author | Paul Moore <paul@paul-moore.com> | 2018-08-02 17:56:50 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2018-11-26 18:40:00 -0500 |
commit | d0a3f18a70f2d9700bf9f5e9c4a505472388a7c1 (patch) | |
tree | b316add3dac38538bff1756da5d4c8c4f2fd2950 /kernel/audit_tree.c | |
parent | c8fc5d49c341805fee7fc295f2ea8a709f78aec4 (diff) | |
download | linux-d0a3f18a70f2d9700bf9f5e9c4a505472388a7c1.tar.bz2 |
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_tree.c')
-rw-r--r-- | kernel/audit_tree.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/audit_tree.c b/kernel/audit_tree.c index 58e84eb5d826..d4af4d97f847 100644 --- a/kernel/audit_tree.c +++ b/kernel/audit_tree.c @@ -533,8 +533,7 @@ static void audit_tree_log_remove_rule(struct audit_krule *rule) ab = audit_log_start(NULL, GFP_KERNEL, AUDIT_CONFIG_CHANGE); if (unlikely(!ab)) return; - audit_log_format(ab, "op=remove_rule"); - audit_log_format(ab, " dir="); + audit_log_format(ab, "op=remove_rule dir="); audit_log_untrustedstring(ab, rule->tree->pathname); audit_log_key(ab, rule->filterkey); audit_log_format(ab, " list=%d res=1", rule->listnr); |