[libvirt] [PATCH 3/4] Ignore open failures when relabelling disk images

Eric Blake eblake at redhat.com
Mon Nov 1 22:05:30 UTC 2010


On 11/01/2010 11:48 AM, Daniel P. Berrange wrote:
> 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 |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c
> index 0612ce3..edeff10 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);
>  }

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101101/a49c8fd5/attachment-0001.sig>


More information about the libvir-list mailing list