Univention Bugzilla – Bug 42622
libvirtd: Configure 'unix_sock_group' through UCR
Last modified: 2016-10-20 12:40:54 CEST
+++ This bug was initially created as a clone of Bug #32656 +++ "sudo virsh" is unsafe in spite of the white-list (fork an editor as root), unneeded (libvirtd runs as root, virsh is only the dumb frontend not doing any file access) and complicates some work flows (not all wanted commands are white-listed, e.g. pool-refresh, screenshot, ...). Instead /var/run/libvirt/libvirt-sock should be configured to allow access for "Tech": @ /etc/univention/templates/files/etc/libvirt/libvirtd.conf:83 -unix_sock_group = "libvirt" +unix_sock_group = "Tech"
r73071 | Bug #42622 libvirt: New UCRV libvirt/group for unix_socket_group r73072 | Bug #42622 libvirt: New UCRV libvirt/group for unix_socket_group Package: univention-virtual-machine-manager-node Version: 4.0.1-5.97.201610110950 Branch: ucs_4.1-0 Scope: errata4.1-3 r73073 | Bug #42622 libvirt: New UCRV libvirt/group for unix_socket_group YAML univention-virtual-machine-manager-node.yaml
Reopen: The change itself is fine, but for this to work we had to export VIRSH_DEFAULT_CONNECT_URI=qemu:///system into users ENV if users wanted to use and benefit from this change. I think we should at least document this in the UCRv description OK: configureable libvirtd.conf, UCR libvirt/group OK: Merge to UCS 4.2, yaml.
(In reply to Erik Damrose from comment #2) > Reopen: The change itself is fine, but for this to work we had to export > VIRSH_DEFAULT_CONNECT_URI=qemu:///system into users ENV if users wanted to > use and benefit from this change. > > I think we should at least document this in the UCRv description FYI: The system libvirtd is responsible for more than qemu://system, e.g. xen:///, lxc:///, test:///, parallels:///. r73337 | Bug #42622 uvmm: More UCRV libvirt/group documentation r73339 | Bug #42622 uvmm: More UCRV libvirt/group documentation Package: univention-virtual-machine-manager-node Version: 4.0.1-6.98.201610181603 Branch: ucs_4.1-0 Scope: errata4.1-3 r73338 | Bug #42622 uvmm: More UCRV libvirt/group documentation YAML
OK: updated UCRv description OK: YAML OK: Merge to ucs4.2 -> Verified
<http://errata.software-univention.de/ucs/4.1/310.html>