]> xenbits.xensource.com Git - libvirt.git/commit
qemu: fix up permissions for pre-created UNIX sockets
authorJán Tomko <jtomko@redhat.com>
Wed, 3 Oct 2018 12:10:13 +0000 (14:10 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 3 Oct 2018 14:26:08 +0000 (16:26 +0200)
commit8ba65c4d95712b54362fd81c34bae99f51d45a0b
treea0635d69af550868b9b8ab7bb3e8422a2b27b026
parent478da65fb46c866973886848ae17f1e16199a77d
qemu: fix up permissions for pre-created UNIX sockets

My commit d6b8838 fixed the uid:gid for the pre-created UNIX sockets
but did not account for the different umask of libvirtd and QEMU.
Since commit 0e1a1a8c we set umask to '0002' for the QEMU process.
Manually tune-up the permissions to match what we would have gotten
if QEMU had created the socket.

https://bugzilla.redhat.com/show_bug.cgi?id=1633389

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_command.c