]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Detect disk backing images before setting up security access
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Nov 2023 13:07:48 +0000 (14:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 24 Nov 2023 14:53:38 +0000 (15:53 +0100)
commit94f1883c8993a14eb2c9b93048e326665c9f3826
tree43cdcfe5725b3bd5c606d13bf04c55a02a9253a7
parenta6fec3881c05cd5a37b78c4fef729bf2d852b27b
qemu: hotplug: Detect disk backing images before setting up security access

The VM will require access also to the detected images. Unfortunately a
recent reordering of the code introduced a bug where the backing chain
was probed after setting up cgroups/selinux/namespaces, which caused
that any detected images were not allowed/added and qemu was then not
able to use them.

Fixes: 9b8bb536ff999fa61e41869bd98a026b8e23378f
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_hotplug.c