]> xenbits.xensource.com Git - libvirt.git/commit
virSecuritySELinuxRestoreImageLabelInt: Move FD image relabeling after 'migrated...
authorPeter Krempa <pkrempa@redhat.com>
Fri, 2 Aug 2024 13:23:41 +0000 (15:23 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 3 Oct 2024 11:29:26 +0000 (13:29 +0200)
commit2983dd44c5106bfdb0d7d5e4d3a9d40678441f2e
treeffbab4b5b101da6356b7c9768ace7cbfd420edd9
parent568b3c6abe0f2413a4a15e0d515f5128c11a587f
virSecuritySELinuxRestoreImageLabelInt: Move FD image relabeling after 'migrated' check

Reorganize the code so that the 'migrated' flag isn't checked multiple
times and thus that it's more obvious what is happening when the
'migrated' flag is asserted.

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