]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Introduce qemuBuildMasterKeyCommandLine
authorJohn Ferlan <jferlan@redhat.com>
Tue, 29 Mar 2016 22:23:02 +0000 (18:23 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 7 Apr 2016 00:27:09 +0000 (20:27 -0400)
commitd8a8cae342f1d3ceb99d451d87cab177302d247c
treec5983b20dce993caea4323b5bb749b16e770990b
parentad7520e83f70892dd7ae6cd0cbc66d0759733e90
qemu: Introduce qemuBuildMasterKeyCommandLine

If the -object secret capability exists, then get the path to the
masterKey file and provide that to qemu. Checking for the existence
of the file before passing to qemu could be done, but causes issues
in mock test environment.

Since the qemuDomainObjPrivate is not available when building the
command line, the qemuBuildHasMasterKey API will have to suffice
as the primary arbiter for whether the capability exists in order
to find/return the path to the master key for usage.

Created the qemuDomainGetMasterKeyAlias API which will be used by
later patches to define the 'keyid' (eg, masterKey) to be used by
other secrets to provide the id to qemu for the master key.
src/qemu/qemu_alias.c
src/qemu/qemu_alias.h
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-master-key.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-master-key.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c