]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-host-validate: distinguish exists vs accessible for devices
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 7 Oct 2015 16:02:31 +0000 (17:02 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Oct 2015 12:15:00 +0000 (13:15 +0100)
commitfd6d506c50d9c885fd500627bddefe2f93ded0c2
treee6a214e9aa33f324c97619309971a9d1d8e41dbd
parent8a6b6037f8486b4fc8a1395d03956510247fbc96
virt-host-validate: distinguish exists vs accessible for devices

Currently we just check that various devices are accessible.
This leads to inaccurate errors reported for /dev/kvm and
/dev/vhost-net if they exist but an unprivileged user lacks
access. Switch existing checks to look for file existance,
and add a separate check for accessibility of /dev/kvm
since some distros don't grant users access by default.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/virt-host-validate-common.c
tools/virt-host-validate-common.h
tools/virt-host-validate-qemu.c