mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
qemu_security: Rename qemuSecurityCleanupTPMEmulator()
The qemuSecurityCleanupTPMEmulator() function calls virSecurityManagerRestoreTPMLabels() and thus the proper name is qemuSecurityRestoreTPMLabels(). Rename it. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
8d6e1f3764
commit
51b92836ff
@ -577,7 +577,7 @@ qemuSecurityStartTPMEmulator(virQEMUDriver *driver,
|
||||
|
||||
|
||||
int
|
||||
qemuSecurityCleanupTPMEmulator(virQEMUDriver *driver,
|
||||
qemuSecurityRestoreTPMLabels(virQEMUDriver *driver,
|
||||
virDomainObj *vm,
|
||||
bool restoreTPMStateLabel)
|
||||
{
|
||||
|
@ -94,7 +94,7 @@ int qemuSecurityStartTPMEmulator(virQEMUDriver *driver,
|
||||
int *exitstatus,
|
||||
int *cmdret);
|
||||
|
||||
int qemuSecurityCleanupTPMEmulator(virQEMUDriver *driver,
|
||||
int qemuSecurityRestoreTPMLabels(virQEMUDriver *driver,
|
||||
virDomainObj *vm,
|
||||
bool restoreTPMStateLabel);
|
||||
|
||||
|
@ -1143,7 +1143,7 @@ qemuExtTPMStop(virQEMUDriver *driver,
|
||||
if (outgoingMigration || qemuTPMHasSharedStorage(vm->def))
|
||||
restoreTPMStateLabel = false;
|
||||
|
||||
if (qemuSecurityCleanupTPMEmulator(driver, vm, restoreTPMStateLabel) < 0)
|
||||
if (qemuSecurityRestoreTPMLabels(driver, vm, restoreTPMStateLabel) < 0)
|
||||
VIR_WARN("Unable to restore labels on TPM state and/or log file");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user