render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
db03f0
From bb12a63909a85c7bf7dac20fb593b6786c78d455 Mon Sep 17 00:00:00 2001
db03f0
From: Richard W.M. Jones <rjones@redhat.com>
db03f0
Date: Fri, 20 May 2011 13:56:46 +0100
db03f0
Subject: [PATCH 1/2] qemudDomainMemoryPeek: change ownership/selinux label on
db03f0
 temporary file.
db03f0
db03f0
Otherwise qemu is unable to write to it, with the error:
db03f0
db03f0
libvir: QEMU error : internal error unable to execute QEMU command 'memsave': Could not open '/var/cache/libvirt/qemu/qemu.mem.RRNvLv'
db03f0
---
db03f0
 src/qemu/qemu_driver.c |    2 ++
db03f0
 1 files changed, 2 insertions(+), 0 deletions(-)
db03f0
db03f0
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
db03f0
index 44acc6a..691965d 100644
db03f0
--- a/src/qemu/qemu_driver.c
db03f0
+++ b/src/qemu/qemu_driver.c
db03f0
@@ -5536,6 +5536,8 @@ qemudDomainMemoryPeek (virDomainPtr dom,
db03f0
         goto endjob;
db03f0
     }
db03f0
 
db03f0
+    virSecurityManagerSetSavedStateLabel(qemu_driver->securityManager, vm, tmp);
db03f0
+
db03f0
     priv = vm->privateData;
db03f0
     qemuDomainObjEnterMonitor(vm);
db03f0
     if (flags == VIR_MEMORY_VIRTUAL) {
db03f0
-- 
db03f0
1.7.5.1
db03f0