提交 347d266c 编写于 作者: D Daniel P. Berrange

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
上级 93a18bba
......@@ -482,7 +482,7 @@ SELinuxSetSecurityImageLabel(virSecurityDriverPtr drv,
return virDomainDiskDefForeachPath(disk,
allowDiskFormatProbing,
false,
true,
SELinuxSetSecurityFileLabel,
secdef);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册