Skip to content
  • Laine Stump's avatar
    fix selinux/100-static-relabel-no test · 8cb5a45f
    Laine Stump authored
    
    
    This test disables auto-relabeling so that it can test if setting a
    user-defined label in the config will work. The problem is that the
    disk image used to boot is then not labelled correctly, and qemu can't
    open it.
    
    To circumvent this failure (which is *not* of the functionality we're
    testing), this patch just temporarily sets SELinux to permissive mode
    during the test, then sets it back during cleanup.
    
    Signed-off-by: default avatarLaine Stump <laine@Laine.org>
    Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
    8cb5a45f