On Tue, Mar 29, 2016 at 07:11:36PM -0400, John Ferlan wrote: > 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. > > Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx> > --- > src/qemu/qemu_alias.c | 17 ++++++ > src/qemu/qemu_alias.h | 3 + > src/qemu/qemu_command.c | 68 ++++++++++++++++++++++ > .../qemuxml2argvdata/qemuxml2argv-master-key.args | 23 ++++++++ > tests/qemuxml2argvdata/qemuxml2argv-master-key.xml | 30 ++++++++++ > tests/qemuxml2argvtest.c | 2 + > 6 files changed, 143 insertions(+) > create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-master-key.args > create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-master-key.xml ACK Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list