Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SELinux workaround note for cracklibCheck #4974

Merged
merged 3 commits into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/admin/ServerSideKeygen.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ configuration in `CS.cfg` are used for all the passwords but each
profile can overwrite to allow stronger or weaker passwords.


NOTE: If cracklibCheck=true is enabled, SELinux may block /usr/sbin/cracklib-check, preventing it from functioning correctly. This can result in unexpected failures during password strength validation. To resolve this issue, apply the necessary SELinux policies using the following commands, which adjust SELinux settings to allow cracklib-check to execute as expected.

Apply the necessary SELinux policies:

[literal,subs="+quotes,verbatim"]
....
# setsebool -P domain_can_mmap_files 1
# ausearch -c 'cracklib-check' --raw | audit2allow -M my-cracklibcheck
# semodule -X 300 -i my-cracklibcheck.pp
....


Key type and key size parameters can be configured as exemplified below:
Expand Down
Loading