]> xenbits.xensource.com Git - libvirt.git/commitdiff
Update VIRT_CONTROL audit record with pid.
authorMarcelo Cerri <mhcerri@linux.vnet.ibm.com>
Thu, 26 Jan 2012 17:16:16 +0000 (15:16 -0200)
committerEric Blake <eblake@redhat.com>
Thu, 26 Jan 2012 23:49:02 +0000 (16:49 -0700)
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
src/conf/domain_audit.c

diff --git a/AUTHORS b/AUTHORS
index f383c660ab050fe92d8455a64b33ae2f0af7e789..166b76fc6b90e9d8c16bfa1907a35a0d91b52df3 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -218,6 +218,7 @@ Patches have also been contributed by:
   Martin Kletzander    <mkletzan@redhat.com>
   Laszlo Ersek         <lersek@redhat.com>
   Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
+  Marcelo Cerri        <mhcerri@linux.vnet.ibm.com>
 
   [....send patches to get your name here....]
 
index 16937dcbe230aff06ca18e4fe2158373f5375375..eb85ec76df9ef8ea280e39ac0383b4ce4e63772c 100644 (file)
@@ -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);
 }