Skip to content

Commit a92f4e9

Browse files
committed
Add rule accounts_password_pam_pwhistory_enforce_for_root
Add rule accounts_password_pam_pwhistory_enforce_for_root to RHEL 8 CIS and RHEL 9 CIS profile. This rule is already selected in RHEL 10 CIS profile. Resolves: https://issues.redhat.com/browse/RHEL-125396
1 parent fcaf3ae commit a92f4e9

File tree

12 files changed

+16
-10
lines changed

12 files changed

+16
-10
lines changed

linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_password_pam_pwhistory_enforce_for_root/rule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ rationale: |-
1212
able to guess the password or use a compromised password.
1313
1414
identifiers:
15+
cce@rhel8: CCE-86734-1
16+
cce@rhel9: CCE-86742-4
1517
cce@rhel10: CCE-87591-4
1618

1719
severity: medium

products/rhel8/controls/cis_rhel8.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,10 +1955,9 @@ controls:
19551955
levels:
19561956
- l1_server
19571957
- l1_workstation
1958-
status: planned
1959-
notes: |-
1960-
A new rule needs to be created to check and remediate the enforce_for_root option in
1961-
/etc/security/pwhistory.conf. accounts_password_pam_enforce_root can be used as reference.
1958+
status: automated
1959+
rules:
1960+
- accounts_password_pam_pwhistory_enforce_for_root
19621961

19631962
- id: 4.4.3.3.3
19641963
title: Ensure pam_pwhistory includes use_authtok (Automated)

products/rhel9/controls/cis_rhel9.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,10 +2000,9 @@ controls:
20002000
levels:
20012001
- l1_server
20022002
- l1_workstation
2003-
status: planned
2004-
notes: |-
2005-
A new rule needs to be created to check and remediate the enforce_for_root option in
2006-
/etc/security/pwhistory.conf. accounts_password_pam_enforce_root can be used as reference.
2003+
status: automated
2004+
rules:
2005+
- accounts_password_pam_pwhistory_enforce_for_root
20072006

20082007
- id: 5.3.3.3.3
20092008
title: Ensure pam_pwhistory includes use_authtok (Automated)

shared/references/cce-redhat-avail.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ CCE-86713-5
7373
CCE-86726-7
7474
CCE-86728-3
7575
CCE-86730-9
76-
CCE-86734-1
77-
CCE-86742-4
7876
CCE-86743-2
7977
CCE-86745-7
8078
CCE-86752-3

tests/data/profile_stability/rhel8/cis.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ accounts_password_pam_maxrepeat
1414
accounts_password_pam_maxsequence
1515
accounts_password_pam_minclass
1616
accounts_password_pam_minlen
17+
accounts_password_pam_pwhistory_enforce_for_root
1718
accounts_password_pam_pwhistory_remember_password_auth
1819
accounts_password_pam_pwhistory_remember_system_auth
1920
accounts_password_pam_unix_no_remember

tests/data/profile_stability/rhel8/cis_server_l1.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ accounts_password_pam_maxrepeat
1414
accounts_password_pam_maxsequence
1515
accounts_password_pam_minclass
1616
accounts_password_pam_minlen
17+
accounts_password_pam_pwhistory_enforce_for_root
1718
accounts_password_pam_pwhistory_remember_password_auth
1819
accounts_password_pam_pwhistory_remember_system_auth
1920
accounts_password_pam_unix_no_remember

tests/data/profile_stability/rhel8/cis_workstation_l1.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ accounts_password_pam_maxrepeat
1414
accounts_password_pam_maxsequence
1515
accounts_password_pam_minclass
1616
accounts_password_pam_minlen
17+
accounts_password_pam_pwhistory_enforce_for_root
1718
accounts_password_pam_pwhistory_remember_password_auth
1819
accounts_password_pam_pwhistory_remember_system_auth
1920
accounts_password_pam_unix_no_remember

tests/data/profile_stability/rhel8/cis_workstation_l2.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ accounts_password_pam_maxrepeat
1414
accounts_password_pam_maxsequence
1515
accounts_password_pam_minclass
1616
accounts_password_pam_minlen
17+
accounts_password_pam_pwhistory_enforce_for_root
1718
accounts_password_pam_pwhistory_remember_password_auth
1819
accounts_password_pam_pwhistory_remember_system_auth
1920
accounts_password_pam_unix_no_remember

tests/data/profile_stability/rhel9/cis.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ accounts_password_pam_maxrepeat
1515
accounts_password_pam_maxsequence
1616
accounts_password_pam_minclass
1717
accounts_password_pam_minlen
18+
accounts_password_pam_pwhistory_enforce_for_root
1819
accounts_password_pam_pwhistory_remember_password_auth
1920
accounts_password_pam_pwhistory_remember_system_auth
2021
accounts_password_pam_unix_no_remember

tests/data/profile_stability/rhel9/cis_server_l1.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ accounts_password_pam_maxrepeat
1414
accounts_password_pam_maxsequence
1515
accounts_password_pam_minclass
1616
accounts_password_pam_minlen
17+
accounts_password_pam_pwhistory_enforce_for_root
1718
accounts_password_pam_pwhistory_remember_password_auth
1819
accounts_password_pam_pwhistory_remember_system_auth
1920
accounts_password_pam_unix_no_remember

0 commit comments

Comments
 (0)