2a05a3a Ticket #48305 - perl module conditional test is not conditional when checking SELinux policies

Authored and Committed by nhosoi 3 years ago
    Ticket #48305 - perl module conditional test is not conditional when checking SELinux policies
    
    Description: If sestatus reports SELinux is disabled, SELinux commands
    such as semanage and restorecon fail.  This patch checks the availability
    and only if the status says SELinux is enabled, it calls the SELinux
    commands.
    
    https://fedorahosted.org/389/ticket/48305
    
    Reviewed by mreynolds@redhat.com (Thank you, Mark!!)
    
    (cherry picked from commit 9fefc13c02c9ae037fad053152193794706aaa31)