mirror of https://gitee.com/openkylin/libvirt.git
qemudDomainMemoryPeek: change ownership/selinux label on temporary file.
Otherwise qemu is unable to write to it, with the error: libvir: QEMU error : internal error unable to execute QEMU command 'memsave': Could not open '/var/cache/libvirt/qemu/qemu.mem.RRNvLv'
This commit is contained in:
parent
1cf9a67bc9
commit
bb12a63909
|
@ -5536,6 +5536,8 @@ qemudDomainMemoryPeek (virDomainPtr dom,
|
|||
goto endjob;
|
||||
}
|
||||
|
||||
virSecurityManagerSetSavedStateLabel(qemu_driver->securityManager, vm, tmp);
|
||||
|
||||
priv = vm->privateData;
|
||||
qemuDomainObjEnterMonitor(vm);
|
||||
if (flags == VIR_MEMORY_VIRTUAL) {
|
||||
|
|
Loading…
Reference in New Issue