From 98b01e8f2bf3dd3c8a8881f2a94af3f9d1a95620 Mon Sep 17 00:00:00 2001 From: Marcelo Cerri Date: Thu, 26 Jan 2012 15:16:16 -0200 Subject: [PATCH] Update VIRT_CONTROL audit record with pid. Added a new field "vm-pid" to the VIRT_CONTROL audit record. This information is useful to correlated another audit events to the events generated by libvirt. --- AUTHORS | 1 + src/conf/domain_audit.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index f383c660ab..166b76fc6b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -218,6 +218,7 @@ Patches have also been contributed by: Martin Kletzander Laszlo Ersek Zeeshan Ali (Khattak) + Marcelo Cerri [....send patches to get your name here....] diff --git a/src/conf/domain_audit.c b/src/conf/domain_audit.c index 16937dcbe2..eb85ec76df 100644 --- a/src/conf/domain_audit.c +++ b/src/conf/domain_audit.c @@ -562,8 +562,8 @@ virDomainAuditLifecycle(virDomainObjPtr vm, const char *op, } VIR_AUDIT(VIR_AUDIT_RECORD_MACHINE_CONTROL, success, - "virt=%s op=%s reason=%s %s uuid=%s", - virt, op, reason, vmname, uuidstr); + "virt=%s op=%s reason=%s %s uuid=%s vm-pid=%d", + virt, op, reason, vmname, uuidstr, vm->pid); VIR_FREE(vmname); }