[PATCH 1/3] audit: tweak audit messages to match conventions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* src/qemu/qemu_audit.c (qemuDomainHostdevAudit): Avoid use of
"type", which has a pre-defined meaning.
(qemuDomainCgroupAudit): Likewise, as well as "item".
---
 src/qemu/qemu_audit.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_audit.c b/src/qemu/qemu_audit.c
index b1948c8..0f954c0 100644
--- a/src/qemu/qemu_audit.c
+++ b/src/qemu/qemu_audit.c
@@ -159,7 +159,7 @@ qemuDomainHostdevAudit(virDomainObjPtr vm,
     }

     VIR_AUDIT(VIR_AUDIT_RECORD_RESOURCE, success,
-              "resrc=dev reason=%s %s uuid=%s type=%s %s",
+              "resrc=dev reason=%s %s uuid=%s bus=%s %s",
               reason, vmname, uuidstr,
               virDomainHostdevSubsysTypeToString(hostdev->source.subsys.type),
               device);
@@ -200,14 +200,14 @@ void qemuDomainCgroupAudit(virDomainObjPtr vm,
         return;
     }
     if (name &&
-        !(detail = virAuditEncode(STREQ(item, "path") ? "path" : "type",
+        !(detail = virAuditEncode(STREQ(item, "path") ? "path" : "category",
                                   name))) {
         VIR_WARN0("OOM while encoding audit message");
         goto cleanup;
     }

     VIR_AUDIT(VIR_AUDIT_RECORD_RESOURCE, success,
-              "resrc=cgroup reason=%s %s uuid=%s item=%s%s%s",
+              "resrc=cgroup reason=%s %s uuid=%s class=%s%s%s",
               reason, vmname, uuidstr,
               item, detail ? " " : "", detail ? detail : "");

-- 
1.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]