Re: [libvirt PATCH 2/2] ci: integration: Set 'safe.directory' when installing QEMU from git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 08, 2022 at 07:59:37AM +0200, Erik Skultety wrote:
> Since a fix for CVE-2022-24765 was released every git command is now
> checked against the context repo in which it's supposed to run
> resulting in a fatal error if the repo is owned by other user than the
> one running the git command.
> This means that in order to be able to do 'sudo make install', we have
> to set the 'safe.directory' for the root user. This is because QEMU
> runs 'git submodule update' automatically on 'make install'.
> 
> Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
> ---

FWIW we could alternatively update the submodules manually, but we'd have list
them explicitly, IOW:
    $ git clone qemu ...
    $ cd qemu.git
    $ scripts/git-submodule.sh ui/keycodemapdb dtc slirp
    $ mkdir build && cd build
    $ ../configure ... --with-git-submodules=ignore
    $ make -jN && sudo make install

Erik




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux