]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_tpm: Open code qemuSecurityStartTPMEmulator()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 14 Dec 2022 09:33:51 +0000 (10:33 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 3 Jan 2023 16:19:22 +0000 (17:19 +0100)
commit3d2dfec95b6354ae6a39b066bc92aae8a4c29ffa
tree8102a322ea60dbbdcc0650f37b9a77d82dd44886
parentc0c52a951999e9ed1948e650e07fe235f5a61944
qemu_tpm: Open code qemuSecurityStartTPMEmulator()

When starting swtpm binary, the qemuSecurityStartTPMEmulator() is
called which sets seclabel on the TPM state and then uses
qemuSecurityCommandRun() to execute the swtpm binary with proper
seclabel. Well, the aim is to ditch
qemuSecurityStartTPMEmulator() because it entangles two distinct
operations. Just call functions for them separately.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_tpm.c