[libvirt] Problems using unix_sock_group

Niraj Tolia ntolia at gmail.com
Thu Apr 9 00:51:58 UTC 2009


I am sure I am missing something simple but I can't seem to figure it
out. I am trying to allow a non-root user rw access to libvirt 0.6.2.
The user is a member of the libvirtd group,
unix_sock_group="libvirtd", and
unix_sock_rw_perms=0770. However, 'virsh list' doesn't seem to work.

The permissions seem correct

srwxrwx--- 1 root libvirtd    0 2009-04-08 17:32 libvirt-sock
srwxrwxrwx 1 root libvirtd    0 2009-04-08 17:32 libvirt-sock-ro

When I strace 'virsh list', it doesn't attempt to connect to
/usr/local/var/run/libvirt/libvirt-sock but when I strace 'virsh
--readonly list', it successfully connects to the "-ro" socket.
configure reported that polkit wasn't configured. This is on a system
with Xen.

Any ideas on what I might be doing wrong?


More information about the libvir-list mailing list