[libvirt] Problem configuring selective dropping of root

Bjoern Walk bwalk at linux.ibm.com
Thu Jul 11 11:15:26 UTC 2019


Martin Kletzander <mkletzan at redhat.com> [2019-07-10, 03:55PM +0200]:
> Our Makefile specifies what to do on installation:
> 
>  $(MKDIR_P) -m 0751 "$(DESTDIR)$(localstatedir)/lib/libvirt/qemu"
> 
> so I guess this is a packaging issue.  No idea where/how the arch packaging
> works, sorry.

But the case that Stephan has where libvirtd does create the directories
on startup is broken. I've ran into this problem myself, but forgot
about it until now, when running libvirtd from the source tree with
prefix /usr/local.

It seems that when creating the directories in the driver
initialization, at least the QEMU driver does not set the umask
accordingly before, manginling the resulting permissions in the process.

Bjoern

-- 
IBM Systems
Linux on Z & Virtualization Development
--------------------------------------------------
IBM Deutschland Research & Development GmbH
Schönaicher Str. 220, 71032 Böblingen
Phone: +49 7031 16 1819
--------------------------------------------------
Vorsitzende des Aufsichtsrats: Matthias Hartmann
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 902 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190711/fdfead2c/attachment-0001.sig>


More information about the libvir-list mailing list