30 lines
977 B
Diff
30 lines
977 B
Diff
From bb12a63909a85c7bf7dac20fb593b6786c78d455 Mon Sep 17 00:00:00 2001
|
|
From: Richard W.M. Jones <rjones@redhat.com>
|
|
Date: Fri, 20 May 2011 13:56:46 +0100
|
|
Subject: [PATCH 1/2] 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'
|
|
---
|
|
src/qemu/qemu_driver.c | 2 ++
|
|
1 files changed, 2 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
|
|
index 44acc6a..691965d 100644
|
|
--- a/src/qemu/qemu_driver.c
|
|
+++ b/src/qemu/qemu_driver.c
|
|
@@ -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) {
|
|
--
|
|
1.7.5.1
|
|
|