mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-26 07:00:07 -05:00
Restore selinux states if they exist at uninstall time
Related: https://pagure.io/freeipa/issue/9434 Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
1 parent
f123b01d81
commit
6aa3c3b628
1 file changed
+1
-1
@@ -3624,7 +3624,7 @@ def uninstall(options):
|
||||
"Failed to disable automatic startup of the SSSD daemon: %s",
|
||||
e)
|
||||
|
||||
if was_sssd_installed and selinux_works:
|
||||
if statestore.has_state('selinux'):
|
||||
# Restore SELinux boolean states
|
||||
boolean_states = {name: statestore.restore_state('selinux', name)
|
||||
for name in constants.SELINUX_BOOLEAN_SSSD}
|
||||
|
||||
Reference in new issue
Block a user