Re: Stop the relabeling of CD images

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

 



----- Original Message -----
> From: Eric Blake <eblake@xxxxxxxxxx>
> To: Cristian Ciupitu <cristian.ciupitu@xxxxxxxxx>
> Cc: libvirt-users <libvirt-users@xxxxxxxxxx>
> Sent: Monday, August 19, 2013 11:24 PM
> Subject: Re:  Stop the relabeling of CD images

> So maybe this would do it:
>
> <source file=...>
>   <seclabel model='selinux' relabel='no'/>
>   <seclabel model='dac' relabel='no'/>
> </source>

I've just tried it and the SELinux label is not changed anymore, but the
ownership is still changed to qemu:qemu.

> I'm also not sure why you think to resort to chattr +i, but if using
> that causes libvirt heartburn, maybe we have a bug to fix to be more
> tolerant of failed label attempts due to chattr.

I resorted to `chattr +i` because I got tired of libvirtd messing with
my files even if it wasn't required.  The official versions of libvirtd
from Fedora 18 or 19 used to complain about not being able to change the
files, but the current bleeding edge version hasn't complained (with the
XML config from above).

To sum it up, SELinux - solved, DAC - not (yet).

Thank you,
Cristian Ciupitu


_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users





[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux