Skip to content

Commit

Permalink
Restore selinux states if they exist at uninstall time
Browse files Browse the repository at this point in the history
Related: https://pagure.io/freeipa/issue/9434

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
  • Loading branch information
abbra authored and rcritten committed Sep 12, 2023
1 parent f123b01 commit 6aa3c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipaclient/install/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6aa3c3b

Please sign in to comment.