9fefc13 Ticket #48305 - perl module conditional test is not conditional when checking SELinux policies

Authored and Committed by nhosoi 8 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!!)