]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Introduce qemuDomainSecretInfo
authorJohn Ferlan <jferlan@redhat.com>
Wed, 6 Apr 2016 12:56:52 +0000 (08:56 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 2 May 2016 09:55:40 +0000 (05:55 -0400)
commit48f56a9c5ab711abdfe30174f455231a269bba07
tree18de117de5090381b75dc8f0bcf7d0cebeb2b579
parent0304a2a7efe6a69162500b5f47e04c8d58fbb3b8
qemu: Introduce qemuDomainSecretInfo

Introduce a new private structure to hold qemu domain auth/secret data.
This will be stored in the qemuDomainDiskPrivate as a means to store the
auth and fetched secret data rather than generating during building of
the command line.

The initial changes will handle the current username and secret values
for rbd and iscsi disks (in their various forms). The rbd secret is
stored as a base64 encoded value, while the iscsi secret is stored as
a plain text value. Future changes will store encoded/encrypted secret
data as well as an initialization vector needed to be given to qemu
in order to decrypt the encoded password along with the domain masterKey.
The inital assumption will be that VIR_DOMAIN_SECRET_INFO_PLAIN is
being used.

Although it's expected that the cleanup of the secret data will be
done immediately after command line generation, reintroduce the object
dispose function qemuDomainDiskPrivateDispose to handle removing
memory associated with the structure for "normal" cleanup paths.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h