提交 98b01e8f 编写于 作者: M Marcelo Cerri 提交者: Eric Blake

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.
上级 7033c5f2
......@@ -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....]
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册