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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]