Skip to content

Commit 4628554

Browse files
committed
Fix UBTU-20-010072 to properly set PAM config for pam_faillock
This commit will properly fix STIG by ensuring that the pam_faillock arguments are properly set in /etc/pam.d/common-auth and within /etc/security/faillok.conf.
1 parent 7d89924 commit 4628554

File tree

12 files changed

+71
-9
lines changed

12 files changed

+71
-9
lines changed

linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_passwords_pam_faillock_audit/ansible/shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle
1+
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle,multi_platform_ubuntu
22
# reboot = false
33
# strategy = restrict
44
# complexity = low

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ references:
2020
srg: SRG-OS-000021-GPOS-00005
2121
stigid@ol8: OL08-00-020021
2222
stigid@rhel8: RHEL-08-020021
23+
stigid@ubuntu2004: UBTU-20-010072
2324

2425
ocil_clause: 'the "audit" option is not set, is missing or commented out'
2526

linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_passwords_pam_faillock_deny/ansible/shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv
1+
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_ubuntu
22
# reboot = false
33
# strategy = restrict
44
# complexity = low

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
documentation_complete: true
22

3-
prodtype: fedora,ol7,ol8,ol9,rhel7,rhel8,rhel9,rhv4,ubuntu2204
3+
prodtype: fedora,ol7,ol8,ol9,rhel7,rhel8,rhel9,rhv4,ubuntu2004,ubuntu2204
44

55
title: 'Lock Accounts After Failed Password Attempts'
66

@@ -54,6 +54,7 @@ references:
5454
stigid@ol8: OL08-00-020010
5555
stigid@rhel7: RHEL-07-010320
5656
stigid@rhel8: RHEL-08-020011
57+
stigid@ubuntu2004: UBTU-20-010072
5758

5859
platform: package[pam]
5960

linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_passwords_pam_faillock_interval/ansible/shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle
1+
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle,multi_platform_ubuntu
22
# reboot = false
33
# strategy = restrict
44
# complexity = low

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
documentation_complete: true
22

3-
prodtype: fedora,ol7,ol8,ol9,rhel7,rhel8,rhel9,rhv4,sle15,ubuntu2204
3+
prodtype: fedora,ol7,ol8,ol9,rhel7,rhel8,rhel9,rhv4,sle15,ubuntu2004,ubuntu2204
44

55
title: 'Set Interval For Counting Failed Password Attempts'
66

@@ -40,6 +40,7 @@ references:
4040
stigid@ol8: OL08-00-020012
4141
stigid@rhel7: RHEL-07-010320
4242
stigid@rhel8: RHEL-08-020012
43+
stigid@ubuntu2004: UBTU-20-010072
4344

4445
platform: package[pam]
4546

linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_passwords_pam_faillock_silent/ansible/shared.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
line: \1required\3 silent
3131
state: present
3232
loop:
33+
{{% if 'ubuntu' in product %}}
34+
- /etc/pam.d/common-auth
35+
{{% else %}}
3336
- /etc/pam.d/system-auth
3437
- /etc/pam.d/password-auth
38+
{{% endif %}}
3539
when:
3640
- not result_faillock_conf_check.stat.exists

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
documentation_complete: true
22

3-
prodtype: ol8,rhel8,rhel9
3+
prodtype: ol8,rhel8,rhel9,ubuntu2004
44

55
title: 'Do Not Show System Messages When Unsuccessful Logon Attempts Occur'
66

@@ -31,6 +31,7 @@ references:
3131
srg: SRG-OS-000329-GPOS-00128,SRG-OS-000021-GPOS-00005
3232
stigid@ol8: OL08-00-020019
3333
stigid@rhel8: RHEL-08-020019
34+
stigid@ubuntu2004: UBTU-20-010072
3435

3536
ocil_clause: 'the system shows messages when three unsuccessful logon attempts occur'
3637

linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_passwords_pam_faillock_unlock_time/ansible/shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv
1+
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_ubuntu
22
# reboot = false
33
# strategy = restrict
44
# complexity = low

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
documentation_complete: true
22

3-
prodtype: fedora,ol7,ol8,ol9,rhel7,rhel8,rhel9,rhv4,ubuntu2204
3+
prodtype: fedora,ol7,ol8,ol9,rhel7,rhel8,rhel9,rhv4,ubuntu2004,ubuntu2204
44

55
title: 'Set Lockout Time for Failed Password Attempts'
66

@@ -54,6 +54,7 @@ references:
5454
stigid@ol8: OL08-00-020014
5555
stigid@rhel7: RHEL-07-010320
5656
stigid@rhel8: RHEL-08-020016
57+
stigid@ubuntu2004: UBTU-20-010072
5758

5859
platform: package[pam]
5960

0 commit comments

Comments
 (0)