From: Daniel P. Berrange Date: Fri, 29 Oct 2010 11:23:56 +0000 (+0100) Subject: Ignore open failures when relabelling disk images X-Git-Tag: v0.8.6~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=347d266c51705f4987fa5ce2a0ecb314ed8745ce;p=thirdparty%2Flibvirt.git Ignore open failures when relabelling disk images 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 --- diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index 0612ce375f..edeff10059 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); }