Skip to content

Commit

Permalink
Merge pull request #10175 from marcusburghardt/pwhistory_control
Browse files Browse the repository at this point in the history
Accept required and requisite control flag for pam_pwhistory
  • Loading branch information
vojtapolasek authored Feb 8, 2023
2 parents 1407b6d + f02788a commit a191ae5
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion controls/cis_rhel8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@ controls:
rules:
- accounts_password_pam_pwhistory_remember_password_auth
- accounts_password_pam_pwhistory_remember_system_auth
- var_password_pam_remember_control_flag=requisite
- var_password_pam_remember_control_flag=requisite_or_required
- var_password_pam_remember=5

- id: 5.5.4
Expand Down
2 changes: 1 addition & 1 deletion controls/cis_rhel9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2112,7 +2112,7 @@ controls:
rules:
- accounts_password_pam_pwhistory_remember_password_auth
- accounts_password_pam_pwhistory_remember_system_auth
- var_password_pam_remember_control_flag=requisite
- var_password_pam_remember_control_flag=requisite_or_required
- var_password_pam_remember=5

- id: 5.5.4
Expand Down
2 changes: 1 addition & 1 deletion controls/srg_gpos/SRG-OS-000077-GPOS-00045.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ controls:
title: {{{ full_name }}} must prohibit password reuse for a minimum of five generations.
rules:
- var_password_pam_remember=5
- var_password_pam_remember_control_flag=requisite
- var_password_pam_remember_control_flag=requisite_or_required
- accounts_password_pam_pwhistory_remember_password_auth
- accounts_password_pam_pwhistory_remember_system_auth
status: automated
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,7 @@ warnings:
Newer versions of <tt>authselect</tt> contain an authselect feature to easily and properly
enable <tt>pam_pwhistory.so</tt> module. If this feature is not yet available in your
system, an authselect custom profile must be used to avoid integrity issues in PAM files.
If a custom profile was created and used in the system before this authselect feature was
available, the new feature can't be used with this custom profile and the
remediation will fail. In this case, the custom profile should be recreated or manually
updated.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ options:
"sufficient": "sufficient"
"binding": "binding"
"ol8": "required,requisite"
"requisite_or_required": "requisite,required"
default: "requisite"
2 changes: 1 addition & 1 deletion products/rhel8/profiles/stig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ selections:
- var_accounts_minimum_age_login_defs=1
- var_accounts_max_concurrent_login_sessions=10
- var_password_pam_remember=5
- var_password_pam_remember_control_flag=requisite
- var_password_pam_remember_control_flag=requisite_or_required
- var_selinux_state=enforcing
- var_selinux_policy_name=targeted
- var_password_pam_unix_rounds=5000
Expand Down
2 changes: 1 addition & 1 deletion tests/data/profile_stability/rhel8/stig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ selections:
- var_accounts_minimum_age_login_defs=1
- var_accounts_max_concurrent_login_sessions=10
- var_password_pam_remember=5
- var_password_pam_remember_control_flag=requisite
- var_password_pam_remember_control_flag=requisite_or_required
- var_selinux_state=enforcing
- var_selinux_policy_name=targeted
- var_password_pam_unix_rounds=5000
Expand Down
2 changes: 1 addition & 1 deletion tests/data/profile_stability/rhel8/stig_gui.profile
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ selections:
- var_accounts_minimum_age_login_defs=1
- var_accounts_max_concurrent_login_sessions=10
- var_password_pam_remember=5
- var_password_pam_remember_control_flag=requisite
- var_password_pam_remember_control_flag=requisite_or_required
- var_selinux_state=enforcing
- var_selinux_policy_name=targeted
- var_password_pam_unix_rounds=5000
Expand Down

0 comments on commit a191ae5

Please sign in to comment.