Comment 6 for bug 967003

Revision history for this message
In , Ján (jn-redhat-bugs) wrote :

This can be worked around by adding:
<seclabel model='dac' relabel='no'/>
to the disk's source since:
commit 3c2487ab0aaf400ca85866f31a7f5b413afd2ce7
Author: Jim Fehlig <email address hidden>
AuthorDate: 2014-05-15 15:30:26 -0600
Commit: Jim Fehlig <email address hidden>
CommitDate: 2014-05-16 15:32:14 -0600

    security_dac: honor relabel='no' in disk config

    https://bugzilla.redhat.com/show_bug.cgi?id=999301

    The DAC driver ignores the relabel='no' attribute in disk config

      <disk type='file' device='floppy'>
        <driver name='qemu' type='raw'/>
        <source file='/some/path/floppy.img'>
          <seclabel model='dac' relabel='no'/>
        </source>
        <target dev='fda' bus='fdc'/>
        <readonly/>
      </disk>

    This patch avoid labeling disks when relabel='no' is specified.

    Signed-off-by: Michal Privoznik <email address hidden>
    Signed-off-by: Jim Fehlig <email address hidden>

git describe: v1.2.4-85-g3c2487a contains: v1.2.5-rc1~44