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
This commit is contained in:
Daniel P. Berrange 2010-10-29 12:23:56 +01:00
parent 93a18bbafa
commit 347d266c51

View File

@ -482,7 +482,7 @@ SELinuxSetSecurityImageLabel(virSecurityDriverPtr drv,
return virDomainDiskDefForeachPath(disk,
allowDiskFormatProbing,
false,
true,
SELinuxSetSecurityFileLabel,
secdef);
}