mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: domain: Setup disk encryption password secret via new helper
The encryption secret is setup only for LUKS and thus requires the new approach. Use qemuDomainSecretInfoNew for initializing it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -1575,10 +1575,10 @@ qemuDomainSecretStorageSourcePrepare(qemuDomainObjPrivatePtr priv,
|
|||||||
|
|
||||||
if (hasEnc) {
|
if (hasEnc) {
|
||||||
if (!(srcPriv->encinfo =
|
if (!(srcPriv->encinfo =
|
||||||
qemuDomainSecretInfoNewPlain(priv, encalias,
|
qemuDomainSecretInfoNew(priv, encalias,
|
||||||
VIR_SECRET_USAGE_TYPE_VOLUME, NULL,
|
VIR_SECRET_USAGE_TYPE_VOLUME, NULL,
|
||||||
&src->encryption->secrets[0]->seclookupdef,
|
&src->encryption->secrets[0]->seclookupdef,
|
||||||
true)))
|
true)))
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user