[libvirt] [PATCH 3/4] Ignore open failures when relabelling disk images

Daniel P. Berrange berrange at redhat.com
Mon Nov 1 17:48:33 UTC 2010


NFS in root squash mode may prevent opening disk images to
determine backing store. Ignore errors in this scenario.

* src/security/security_selinux.c: Ignore open failures on disk
  images
---
 src/security/security_selinux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c
index 0612ce3..edeff10 100644
--- a/src/security/security_selinux.c
+++ b/src/security/security_selinux.c
@@ -482,7 +482,7 @@ SELinuxSetSecurityImageLabel(virSecurityDriverPtr drv,
 
     return virDomainDiskDefForeachPath(disk,
                                        allowDiskFormatProbing,
-                                       false,
+                                       true,
                                        SELinuxSetSecurityFileLabel,
                                        secdef);
 }
-- 
1.7.2.3




More information about the libvir-list mailing list