]> xenbits.xensource.com Git - libvirt.git/commit
qemu: migration: Don't remember seclabel for images shared from current host
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Aug 2024 13:23:44 +0000 (15:23 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 3 Oct 2024 11:29:26 +0000 (13:29 +0200)
commit3bfcb35dd58d2c5c935e20c482941256a6d05734
treecc69be5334a767d471793b8ca2d2eab71ef1ce61
parentb581045520171b2a08c845762aa910e7d328d1b3
qemu: migration: Don't remember seclabel for images shared from current host

In case when the user exports images from current host and there is an
incoming migration from a remote host, security label remembering would
be possible but would attempt to remember the label allowing access to
the image as the image is already used by a VM on remote host.

To prevent remembering the wrong label, we'll skip the remembering of
the label for any shared resource, so that the code behaves identically
regardless of how the image is accessed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_migration.c