Skip to content

Commit 22ff4ba

Browse files
committed
incorporate the rule into rhel9 stig profile
1 parent fa8e72b commit 22ff4ba

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

controls/stig_rhel9.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2783,9 +2783,11 @@ controls:
27832783
RHEL 9 must ensure the password complexity module in the system-auth file
27842784
is configured for three retries or less.
27852785
rules:
2786-
- accounts_password_pam_retry
2786+
- accounts_password_pam_pwquality_conf_retry
27872787
- var_password_pam_retry=3
27882788
status: automated
2789+
notes: |-
2790+
We check only the /etc/security/pwquality.conf, rule should be extended to check also /etc/security/pwquality.conf.d directory content.
27892791
27902792
- id: RHEL-09-611025
27912793
levels:

linux_os/guide/system/accounts/accounts-pam/password_quality/password_quality_libpwquality/accounts_password_pam_pwquality_conf_retry/rule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ severity: medium
2121
identifiers:
2222
cce@rhel9: CCE-86492-6
2323

24+
references:
25+
disa: CCI-004066,CCI-000192
26+
srg: SRG-OS-000069-GPOS-00037
27+
2428
ocil_clause: 'the value of "retry" is set to "0" or greater than "{{{ xccdf_value("var_password_pam_retry") }}}", or is missing'
2529

2630
ocil: |-

tests/data/profile_stability/rhel9/stig.profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ selections:
5555
- accounts_password_pam_ocredit
5656
- accounts_password_pam_pwquality_password_auth
5757
- accounts_password_pam_pwquality_system_auth
58-
- accounts_password_pam_retry
58+
- accounts_password_pam_pwquality_conf_retry
5959
- accounts_password_pam_ucredit
6060
- accounts_password_pam_unix_rounds_password_auth
6161
- accounts_password_pam_unix_rounds_system_auth

tests/data/profile_stability/rhel9/stig_gui.profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ selections:
6767
- accounts_password_pam_ocredit
6868
- accounts_password_pam_pwquality_password_auth
6969
- accounts_password_pam_pwquality_system_auth
70-
- accounts_password_pam_retry
70+
- accounts_password_pam_pwquality_conf_retry
7171
- accounts_password_pam_ucredit
7272
- accounts_password_pam_unix_rounds_password_auth
7373
- accounts_password_pam_unix_rounds_system_auth

0 commit comments

Comments
 (0)