Skip to content

Commit

Permalink
incorporate the rule into rhel9 stig profile
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtapolasek committed Jan 31, 2025
1 parent 1b64881 commit 92e3307
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion controls/stig_rhel9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2783,9 +2783,11 @@ controls:
RHEL 9 must ensure the password complexity module in the system-auth file
is configured for three retries or less.
rules:
- accounts_password_pam_retry
- accounts_password_pam_pwquality_conf_retry
- var_password_pam_retry=3
status: automated
notes: |-
We check only the /etc/security/pwquality.conf, rule should be extended to check also /etc/security/pwquality.conf.d directory content.
- id: RHEL-09-611025
levels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ severity: medium
identifiers:
cce@rhel9: CCE-86492-6

references:
disa: CCI-004066,CCI-000192
srg: SRG-OS-000069-GPOS-00037

ocil_clause: 'the value of "retry" is set to "0" or greater than "{{{ xccdf_value("var_password_pam_retry") }}}", or is missing'

ocil: |-
Expand Down
2 changes: 1 addition & 1 deletion tests/data/profile_stability/rhel9/stig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ selections:
- accounts_password_pam_ocredit
- accounts_password_pam_pwquality_password_auth
- accounts_password_pam_pwquality_system_auth
- accounts_password_pam_retry
- accounts_password_pam_pwquality_conf_retry
- accounts_password_pam_ucredit
- accounts_password_pam_unix_rounds_password_auth
- accounts_password_pam_unix_rounds_system_auth
Expand Down
2 changes: 1 addition & 1 deletion tests/data/profile_stability/rhel9/stig_gui.profile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ selections:
- accounts_password_pam_ocredit
- accounts_password_pam_pwquality_password_auth
- accounts_password_pam_pwquality_system_auth
- accounts_password_pam_retry
- accounts_password_pam_pwquality_conf_retry
- accounts_password_pam_ucredit
- accounts_password_pam_unix_rounds_password_auth
- accounts_password_pam_unix_rounds_system_auth
Expand Down

0 comments on commit 92e3307

Please sign in to comment.