]> xenbits.xensource.com Git - libvirt.git/commit
Audit VM start/stop/suspend/resume
authorMiloslav Trmač <mitr@redhat.com>
Tue, 12 Oct 2010 11:22:03 +0000 (12:22 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 19 Oct 2010 16:31:31 +0000 (17:31 +0100)
commita8b5f9bd27d65c2ced064b9267ca31dee7ad9c86
treea607b74249ab4ef1ba4b5bc82d94bd115fc1aa19
parent8f680ad3b81075c49b6904dfd86fcc178f36aaf9
Audit VM start/stop/suspend/resume

Most operations are audited at the libvirtd level; auditing in
src/libvirt.c would result in two audit entries per operation (one in
the client, one in libvirtd).

The only exception is a domain stopping of its own will (e.g. because
the user clicks on "shutdown" inside the interface).  There can often be
no client connected at the time the domain stops, so libvirtd does not
have any virConnectPtr object on which to attach an event watch.  This
patch therefore adds auditing directly inside the qemu driver (other
drivers are not supported).
daemon/remote.c
src/qemu/qemu_driver.c