7f4032 Disable SELinux on a policy type subpackage uninstall

Authored and Committed by Petr Lautrbach 7 years ago
    Disable SELinux on a policy type subpackage uninstall
    
    When selinux-policy is uninstalled, SELinux is changed to permissive and
    /etc/selinux/config is updated to disable SELinux. But it doesn't apply
    when selinux-policy-{targeted,mls,minimum} are uninstalled.
    
    With this change when one of the policy subpackages is uninstalled
    and the current policy type is same as the uninstalled policy, SELinux
    is switched to permissive and disabled in config file as well.
    
    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1498569
    
        
file modified
+43 -0