Stop the relabeling of CD images

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

 



Hi,

I'm installing the operating system for my virtual machines from CD
images and I would like for libvirtd to stop relabeling the
corresponding files.  Since the installation media is no big secret, I
have labeled the files with system_u:object_r:public_content_t:s0, but
libvirtd keeps changing them to system_u:object_r:svirt_image_t:s0.  It
also changes the ownership to qemu:qemu.  This means that I can not make
the files immutable (chattr +i).

The XML dump of the machine looks like this :

    <disk type='file' device='cdrom'>
        <driver name='qemu' type='raw'/>
        <source file='/mnt/extra/Software/Linux/Fedora/Fedora-Live-Desktop-x86_64-19/Fedora-Live-Desktop-x86_64-19-1.iso'>
            <seclabel relabel='no'/>
        </source>
        <target dev='hdc' bus='ide'/>
        <readonly/>
        <shareable/>
        <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>

I am using libvirt-daemon-1.1.1-2.fc19.x86_64.  You might also find
interesting bug #568935 [1].

So how do I stop libvirtd from changing the permissions of the CD
images?

Thank you,
Cristian Ciupitu


[1]: https://bugzilla.redhat.com/show_bug.cgi?id=568935

_______________________________________________
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