From: Dan Kenigsberg Date: Mon, 18 Oct 2010 16:21:15 +0000 (-0600) Subject: qemu: let qemu group look below /var/lib/libvirt/qemu/ X-Git-Tag: v0.8.5~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df552cd3775cd1c443e3bf7e391c324a09b99a3;p=thirdparty%2Flibvirt.git 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: 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 --- diff --git a/libvirt.spec.in b/libvirt.spec.in index e8126b484d..55e368e6c2 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -782,8 +782,8 @@ fi %if %{with_qemu} %dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/ -%dir %attr(0700, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/ -%dir %attr(0700, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/ +%dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/ +%dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/ %endif %if %{with_lxc} %dir %{_localstatedir}/run/libvirt/lxc/