Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
launch: libvirt: Fix labelling of overlay files.
We had code (added for RHBZ#912499) which labels overlay files correctly so that libvirt can read them. Unfortunately this code was broken by subsequent commits: the new backend setting for the imagelabel is only copied to the 'data' struct during launch, but the create_cow_overlay callback is called before launch (when adding drives). The fix is easy: ensure create_cow_overlay_libvirt checks for the backend setting and initializes the 'data' struct. This change also means we need to free (data->selinux_imagelabel) before setting it in launch (and we do the same for data->selinux_label, although that's not strictly necessary). For background on this, see: https://bugzilla.redhat.com/show_bug.cgi?id=912499#c10
- Loading branch information