]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Find helpers at runtime
authorAndrea Bolognani <abologna@redhat.com>
Tue, 25 Apr 2023 14:38:53 +0000 (16:38 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 10 May 2023 16:54:09 +0000 (18:54 +0200)
commit934113d3762ca54a136bfae8423a39895bc43716
treec723497b7e31f96b8933e1e9ffb5af706c3f867b
parentef91f9e52a8a26bcadc40e91d9dcc9bafc902c27
qemu: Find helpers at runtime

Use the recently introduced virFindFileInPathFull() function to
discover the path for qemu-bridge-helper and qemu-pr-helper at
runtime.

Note that it's still possible for the administrator to prevent
this lookup and use arbitrary binaries by setting the
appropriate keys in qemu.conf: this simply removes the need to
perform the lookup at build time, and thus to have the helpers
installed in the build environment.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_interface.c
src/qemu/qemu_process.c