cgrzemba / 389-ds-base

Forked from 389-ds-base 5 years ago
Clone

b20756b 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!!)
    
    (cherry picked from commit 9fefc13c02c9ae037fad053152193794706aaa31)
    (cherry picked from commit 2a05a3a75ce082a28375cb2f687739d7474164a1)