Don't try to add non-existant devices to ACL
Don't try to add non-existant devices to ACL

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 <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

eskultety/libvirt,rlaager/libvirt,jardasgit/libvirt,zippy2/libvirt,datto/libvirt,jardasgit/libvirt,taget/libvirt,eskultety/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,jfehlig/libvirt,elmarco/libvirt,libvirt/libvirt,jardasgit/libvirt,siboulet/libvirt-openvz,zhlcindy/libvirt-1.1.4-maintain,rlaager/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,eskultety/libvirt,crobinso/libvirt,eskultety/libvirt,zippy2/libvirt,datto/libvirt,shugaoye/libvirt,siboulet/libvirt-openvz,fabianfreyer/libvirt,andreabolognani/libvirt,jardasgit/libvirt,zippy2/libvirt,cbosdo/libvirt,rlaager/libvirt,agx/libvirt,eskultety/libvirt,datto/libvirt,olafhering/libvirt,siboulet/libvirt-openvz,siboulet/libvirt-openvz,rlaager/libvirt,fabianfreyer/libvirt,crobinso/libvirt,taget/libvirt,elmarco/libvirt,libvirt/libvirt,crobinso/libvirt,fabianfreyer/libvirt,shugaoye/libvirt,agx/libvirt,agx/libvirt,VenkatDatta/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,elmarco/libvirt,taget/libvirt,taget/libvirt,libvirt/libvirt,andreabolognani/libvirt,olafhering/libvirt,jfehlig/libvirt,crobinso/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,andreabolognani/libvirt,datto/libvirt,cbosdo/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,olafhering/libvirt,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,shugaoye/libvirt,agx/libvirt,elmarco/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,olafhering/libvirt,andreabolognani/libvirt,siboulet/libvirt-openvz,nertpinx/libvirt,cbosdo/libvirt,shugaoye/libvirt,cbosdo/libvirt,libvirt/libvirt,elmarco/libvirt,shugaoye/libvirt,nertpinx/libvirt,taget/libvirt,zippy2/libvirt,nertpinx/libvirt,jfehlig/libvirt,datto/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,rlaager/libvirt