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.
This commit is contained in:
Marcelo Cerri 2012-01-26 15:16:16 -02:00 committed by Eric Blake
parent 7033c5f20d
commit 98b01e8f2b
2 changed files with 3 additions and 2 deletions

View File

@ -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....]

View 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);
}