[libvirt-users] Customize UNIX socket permissions

Jonathan Lebon jlebon at redhat.com
Tue Sep 3 16:22:20 UTC 2013


Hi,

I have a qemu domain which uses a virtio-serial port. On the
host, the unix socket is created in /var/lib/libvirt/qemu.
As non-root, I'd like to be able to communicate through this
unix socket.

The issue is that the socket is created as qemu:qemu with
permissions 755 (does this come from libvirt's umask?). Is
there any way to affect this permission from the domain's
XML definition file? Even if it has to be created as
qemu:qemu, having a permission of 775 would also be an
acceptable solution.

Thanks,

Jonathan




More information about the libvirt-users mailing list