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

Patch 5.4.2 to ensure account module using pam_faillock.so setup #8

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

tonystaark
Copy link
Contributor

@tonystaark tonystaark commented Dec 5, 2022

Signed-off-by: Tony Ng [email protected]

Overall Review of Changes:
According to CIS AL2 Benchmark v2.0.0, for rule 5.4.2, the following line should be configured for system-auth :
/etc/pam.d/system-auth:account required pam_faillock.so

and similiarly for password-auth files :

/etc/pam.d/spassword-auth:account required pam_faillock.so

However, upon turning on Ansible rule for 5.4.2, the above 2 lines are not seen.

Issue Fixes:
This PR is to add the lines above in the files. It also makes sure the line is positioned on the first line under the account module for each file, as mentioned in the benchmark report.

How has this been tested?:
Tested with our STG environment machines and the result shows the expected here:

/etc/pam.d/spassword-auth:account:
password-auth

/etc/pam.d/system-auth:account :
system-auth

georgenalen
georgenalen previously approved these changes Dec 5, 2022
Copy link
Contributor

@georgenalen georgenalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@tonystaark
Copy link
Contributor Author

Thank you for your help. Please proceed to merge the PR.

Copy link
Member

@uk-bolly uk-bolly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work

@uk-bolly uk-bolly merged commit 1f6950c into ansible-lockdown:devel Dec 6, 2022
@uk-bolly uk-bolly mentioned this pull request Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants