mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
ci: integration: Set 'safe.directory' when installing QEMU from git
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@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
3b943f0c43
commit
d1e3247675
@ -16,6 +16,11 @@
|
||||
then
|
||||
make -j"$JOBS" check-build;
|
||||
fi
|
||||
|
||||
# we need the following since the fix for CVE-2022-24765 now causes a fatal
|
||||
# error if a user issues a git command from within a directory owned by some
|
||||
# other user
|
||||
- sudo git config --global --add safe.directory "$SCRATCH_DIR/qemu"
|
||||
- sudo make install
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user