mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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:
parent
93a18bbafa
commit
347d266c51
@ -482,7 +482,7 @@ SELinuxSetSecurityImageLabel(virSecurityDriverPtr drv,
|
||||
|
||||
return virDomainDiskDefForeachPath(disk,
|
||||
allowDiskFormatProbing,
|
||||
false,
|
||||
true,
|
||||
SELinuxSetSecurityFileLabel,
|
||||
secdef);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user