]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
security_dac: honor relabel='no' in disk config
authorJim Fehlig <jfehlig@suse.com>
Thu, 15 May 2014 21:30:26 +0000 (15:30 -0600)
committerJim Fehlig <jfehlig@suse.com>
Fri, 16 May 2014 21:32:14 +0000 (15:32 -0600)
commit3c2487ab0aaf400ca85866f31a7f5b413afd2ce7
treeb161324c08e51d987e48baec300f5a17df0d6ef4
parent9369a562446b7bb5314e6e1f6e65379bc1da6721
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 <mprivozn@redhat.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/security/security_dac.c