]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tpm: Use fd to pass password to swtpm_setup and swtpm
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 Jul 2019 18:22:11 +0000 (14:22 -0400)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 26 Jul 2019 09:30:58 +0000 (10:30 +0100)
commit5eeff285856cb47a7cb91a9ea4669e7a5001c2b2
tree8cfd7ae33749d85281d6b180cdd0e1144dd2f673
parent52f115682fea4d99d01f2315c9a79e61db1e60a0
tpm: Use fd to pass password to swtpm_setup and swtpm

Allow vTPM state encryption when swtpm_setup and swtpm support
passing a passphrase using a file descriptor.

This patch enables the encryption of the vTPM state only. It does
not encrypt the state during migration, so the destination secret
does not need to have the same password at this point.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt_private.syms
src/qemu/qemu_tpm.c
src/util/virtpm.c
src/util/virtpm.h