]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Ignore open failures when relabelling disk images
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 29 Oct 2010 11:23:56 +0000 (12:23 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Nov 2010 14:38:23 +0000 (14:38 +0000)
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

index 0612ce375f644ba28b2660b31b5b814bf948a8f4..edeff100597a01697746df8f9ffb7000a3d7a0ea 100644 (file)
@@ -482,7 +482,7 @@ SELinuxSetSecurityImageLabel(virSecurityDriverPtr drv,
 
     return virDomainDiskDefForeachPath(disk,
                                        allowDiskFormatProbing,
-                                       false,
+                                       true,
                                        SELinuxSetSecurityFileLabel,
                                        secdef);
 }