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/auditsc.c | |
parent | c8fc5d49c341805fee7fc295f2ea8a709f78aec4 (diff) | |
download | talos-obmc-linux-d0a3f18a70f2d9700bf9f5e9c4a505472388a7c1.tar.gz talos-obmc-linux-d0a3f18a70f2d9700bf9f5e9c4a505472388a7c1.zip |
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/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 605f2d825204..51e735aedf58 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -2503,10 +2503,9 @@ void audit_seccomp_actions_logged(const char *names, const char *old_names, if (unlikely(!ab)) return; - audit_log_format(ab, "op=seccomp-logging"); - audit_log_format(ab, " actions=%s", names); - audit_log_format(ab, " old-actions=%s", old_names); - audit_log_format(ab, " res=%d", res); + audit_log_format(ab, + "op=seccomp-logging actions=%s old-actions=%s res=%d", + names, old_names, res); audit_log_end(ab); } |