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:
Richard W.M. Jones 2011-05-20 13:56:46 +01:00
parent 1cf9a67bc9
commit bb12a63909
1 changed files with 2 additions and 0 deletions

View File

@ -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) {