mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 15:13:50 -06:00
HSM: fix the module name
During the server installation, the installer checks if the SElinux policy module for the specific hardware is detected. The current code mixed up SElinux policy module name and RPM package name and resulted in a false warning that the module was missing. The module name is ipa-nfast or ipa-luna, not ipa-selinux-nfast or ipa-selinux-luna. The name is defined in the spec file as %{module}-nfast and module=ipa. Fixes: https://pagure.io/freeipa/issue/9636 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
84751a26a9
commit
1fc63e2b51
@ -277,9 +277,9 @@ def hsm_validator(token_name, token_library, token_password):
|
|||||||
# validate that the appropriate SELinux module is installed
|
# validate that the appropriate SELinux module is installed
|
||||||
# Only warn in case the expected paths don't match.
|
# Only warn in case the expected paths don't match.
|
||||||
if 'nfast' in token_library:
|
if 'nfast' in token_library:
|
||||||
module = 'ipa-selinux-nfast'
|
module = 'ipa-nfast'
|
||||||
elif 'luna' in token_library:
|
elif 'luna' in token_library:
|
||||||
module = 'ipa-selinux-luna'
|
module = 'ipa-luna'
|
||||||
else:
|
else:
|
||||||
module = None
|
module = None
|
||||||
if module:
|
if module:
|
||||||
|
Loading…
Reference in New Issue
Block a user