mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemu: Rename qemuSecurityRestoreSavedStateLabel()
The function calls virSecurityManagerDomainRestorePathLabel() after all. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
4ccbd207f2
commit
6a0eaebaaf
@ -6958,7 +6958,7 @@ qemuDomainSaveImageStartVM(virConnectPtr conn,
|
||||
qemuProcessStop(driver, vm, VIR_DOMAIN_SHUTOFF_FAILED,
|
||||
asyncJob, VIR_QEMU_PROCESS_STOP_MIGRATED);
|
||||
}
|
||||
if (qemuSecurityRestoreSavedStateLabel(driver, vm, path) < 0)
|
||||
if (qemuSecurityDomainRestorePathLabel(driver, vm, path) < 0)
|
||||
VIR_WARN("failed to restore save state label on %s", path);
|
||||
return ret;
|
||||
}
|
||||
|
@ -615,9 +615,9 @@ qemuSecurityDomainSetPathLabel(virQEMUDriverPtr driver,
|
||||
|
||||
|
||||
int
|
||||
qemuSecurityRestoreSavedStateLabel(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
const char *savefile)
|
||||
qemuSecurityDomainRestorePathLabel(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
const char *path)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
pid_t pid = -1;
|
||||
@ -631,7 +631,7 @@ qemuSecurityRestoreSavedStateLabel(virQEMUDriverPtr driver,
|
||||
|
||||
if (virSecurityManagerDomainRestorePathLabel(driver->securityManager,
|
||||
vm->def,
|
||||
savefile) < 0)
|
||||
path) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virSecurityManagerTransactionCommit(driver->securityManager,
|
||||
|
@ -101,9 +101,9 @@ int qemuSecurityDomainSetPathLabel(virQEMUDriverPtr driver,
|
||||
const char *path,
|
||||
bool allowSubtree);
|
||||
|
||||
int qemuSecurityRestoreSavedStateLabel(virQEMUDriverPtr driver,
|
||||
int qemuSecurityDomainRestorePathLabel(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
const char *savefile);
|
||||
const char *path);
|
||||
|
||||
int qemuSecurityCommandRun(virQEMUDriverPtr driver,
|
||||
virDomainObjPtr vm,
|
||||
|
Loading…
Reference in New Issue
Block a user