]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Check for existence of provided *_tls_x509_cert_dir
authorJohn Ferlan <jferlan@redhat.com>
Thu, 29 Jun 2017 12:27:55 +0000 (08:27 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 2 Aug 2017 19:51:50 +0000 (15:51 -0400)
commitdc4c2f75ab233561f47c8804667ed129dad05d69
tree3a727fb7b14caa1e5c323fca3ceb979a0e753cc5
parent894750468329080ec4ff7ee5ec43f452115d46fc
qemu: Check for existence of provided *_tls_x509_cert_dir

https://bugzilla.redhat.com/show_bug.cgi?id=1458630

Introduce virQEMUDriverConfigTLSDirResetDefaults in order to check
if the defaultTLSx509certdir was changed, then change the default
for any other *TLSx509certdir that was not set to the default default.

Introduce virQEMUDriverConfigValidate to validate the existence of
any of the *_tls_x509_cert_dir values that were uncommented/set,
incuding the default.

Update the qemu.conf description for default to describe the consequences
if the default directory path does not exist.

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