[libvirt] [PATCH] Don't try to add non-existant devices to ACL

Eric Blake eblake at redhat.com
Wed Feb 27 17:09:33 UTC 2013


On 02/27/2013 09:59 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The QEMU driver has a list of devices nodes that are whitelisted
> for all guests. The kernel has recently started returning an
> error if you try to whitelist a device which does not exist.
> This causes a warning in libvirt logs and an audit error for
> any missing devices. eg
> 
> 2013-02-27 16:08:26.515+0000: 29625: warning : virDomainAuditCgroup:451 : success=no virt=kvm resrc=cgroup reason=allow vm="vm031714" uuid=9d8f1de0-44f4-a0b1-7d50-e41ee6cd897b cgroup="/sys/fs/cgroup/devices/libvirt/qemu/vm031714/" class=path path=/dev/kqemu rdev=? acl=rw
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/qemu/qemu_cgroup.c | 6 ++++++
>  1 file changed, 6 insertions(+)

ACK. Safe for 1.0.3.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130227/3e18c8d8/attachment-0001.sig>


More information about the libvir-list mailing list