]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemudDomainMemoryPeek: change ownership/selinux label on temporary file.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 20 May 2011 12:56:46 +0000 (13:56 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 20 May 2011 15:12:36 +0000 (16:12 +0100)
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'

src/qemu/qemu_driver.c

index 44acc6a242faba6b22e6b728daf3225e88e4f2db..691965d1984972ed50c3b9f99d608713efbd43fc 100644 (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) {