]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: let qemu group look below /var/lib/libvirt/qemu/
authorDan Kenigsberg <danken@redhat.com>
Mon, 18 Oct 2010 16:21:15 +0000 (10:21 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 18 Oct 2010 16:23:03 +0000 (10:23 -0600)
commit0df552cd3775cd1c443e3bf7e391c324a09b99a3
tree62829ff6e095a15a886de254ef712ae6e491ba7b
parent6c4b04142b014746e341e9834adbae6e60962af9
qemu: let qemu group look below /var/lib/libvirt/qemu/

Vdsm needs to communicate with its guest agent via unix domain socket,
which qemu creates due to the following domain xml device:

    <channel type='unix'>
      <target type='virtio' name='com.redhat.rhevm.vdsm'/>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/fcp-xp-1.com.redhat.rhevm.vdsm'/>
    </channel>

The location of the socket below /var/lib/libvirt/qemu/channels makes
sense, to humans and selinux policy alike. However, that socket should
be accessible to vdsm, too.

Due to other (storage) reasons, vdsm is to join the "qemu" group. With
this patch, vdsm can look below /var/lib/libvirt/qemu and connect to the
socket.

The socket itself should be chmod'ed to allow qemu group read/write, but
that's for another project.

BZ#643407
libvirt.spec.in