]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
audit: Audit resources used by VirtIO RNG
authorPeter Krempa <pkrempa@redhat.com>
Mon, 11 Mar 2013 16:09:19 +0000 (17:09 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 15 Mar 2013 08:07:20 +0000 (09:07 +0100)
commita71680fe929ba34c6be1f407a58106329b94d74a
treee7e97f06d17a777d897b67a3bc8e55326a756bc8
parent53187afd813aae6250f88e9ec44e0f22dff40e3c
audit: Audit resources used by VirtIO RNG

This patch adds auditing of resources used by Virtio RNG devices. Only
resources on the local filesystems are audited.

The audit logs look like:

For the 'random' backend:
type=VIRT_RESOURCE msg=audit(1363099126.643:31): pid=995252 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm resrc=rng reason=start vm="qcow-test" uuid=118733ed-b658-3e22-a2cb-4fe5cb3ddf79 old-rng="?" new-rng="/dev/random": exe="/home/pipo/libvirt/daemon/.libs/libvirtd" hostname=? addr=? terminal=pts/0 res=success'

For local character device source:
type=VIRT_RESOURCE msg=audit(1363100164.240:96): pid=995252 uid=0 auid=4294967295 ses=4294967295 msg='virt=kvm resrc=rng reason=start vm="qcow-test" uuid=118733ed-b658-3e22-a2cb-4fe5cb3ddf79 old-rng="?" new-rng="/tmp/unix.sock": exe="/home/pipo/libvirt/daemon/.libs/libvirtd" hostname=? addr=? terminal=pts/0 res=success'
src/conf/domain_audit.c