render / rpms / libvirt

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