|
|
c313de |
From ab0cc413165b8a80d68b30b7e69c611f7087a29b Mon Sep 17 00:00:00 2001
|
|
|
c313de |
Message-Id: <ab0cc413165b8a80d68b30b7e69c611f7087a29b@dist-git>
|
|
|
c313de |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
c313de |
Date: Thu, 3 Jan 2019 10:03:43 +0100
|
|
|
c313de |
Subject: [PATCH] qemuProcessBuildDestroyMemoryPathsImpl: Don't overwrite error
|
|
|
c313de |
MIME-Version: 1.0
|
|
|
c313de |
Content-Type: text/plain; charset=UTF-8
|
|
|
c313de |
Content-Transfer-Encoding: 8bit
|
|
|
c313de |
|
|
|
c313de |
The qemuSecurityDomainSetPathLabel() function reports perfect
|
|
|
c313de |
error itself. Do not overwrite it to something less meaningful.
|
|
|
c313de |
|
|
|
c313de |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
c313de |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c313de |
(cherry picked from commit 577e68dff90e617a20165dfede0390faa1e24031)
|
|
|
c313de |
|
|
|
c313de |
https://bugzilla.redhat.com/show_bug.cgi?id=1658112
|
|
|
c313de |
|
|
|
c313de |
Signed-off-by: Erik Skultety <eskultet@redhat.com>
|
|
|
c313de |
Message-Id: <7ca28756d9a136d67b01df15efe1271266017164.1546506016.git.eskultet@redhat.com>
|
|
|
c313de |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c313de |
---
|
|
|
c313de |
src/qemu/qemu_process.c | 5 +----
|
|
|
c313de |
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
c313de |
|
|
|
c313de |
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
|
|
|
c313de |
index c220accfaf..34aac69afc 100644
|
|
|
c313de |
--- a/src/qemu/qemu_process.c
|
|
|
c313de |
+++ b/src/qemu/qemu_process.c
|
|
|
c313de |
@@ -3672,11 +3672,8 @@ qemuProcessBuildDestroyMemoryPathsImpl(virQEMUDriverPtr driver,
|
|
|
c313de |
}
|
|
|
c313de |
|
|
|
c313de |
if (qemuSecurityDomainSetPathLabel(driver->securityManager,
|
|
|
c313de |
- def, path, true) < 0) {
|
|
|
c313de |
- virReportError(VIR_ERR_INTERNAL_ERROR,
|
|
|
c313de |
- _("Unable to label %s"), path);
|
|
|
c313de |
+ def, path, true) < 0)
|
|
|
c313de |
return -1;
|
|
|
c313de |
- }
|
|
|
c313de |
} else {
|
|
|
c313de |
if (virFileDeleteTree(path) < 0)
|
|
|
c313de |
return -1;
|
|
|
c313de |
--
|
|
|
c313de |
2.22.0
|
|
|
c313de |
|