• M
    security: Don't skip relabel for all chardevs · e0d1a378
    Michal Privoznik 提交于
    Our commit e13e8808 was way too generic. Currently, virtlogd is
    used only for chardevs type of file and nothing else. True, we
    must not relabel the path in this case, but we have to in all
    other cases. For instance, if you want to have a physical console
    attached to your guest:
    
        <console type='dev'>
          <source path='/dev/ttyS0'/>
          <target type='virtio' port='1'/>
        </console>
    
    Starting such domain fails because qemu doesn't have access to
    /dev/ttyS0 because we haven't relabelled the path.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    e0d1a378
security_selinux.c 92.8 KB