Skip to content

Remove display_login_attempts from Ubuntu 24.04's default profile - #15030

Open
arian-zetier wants to merge 1 commit into
ComplianceAsCode:masterfrom
arian-zetier:fix/remove-display_login_attempts
Open

Remove display_login_attempts from Ubuntu 24.04's default profile#15030
arian-zetier wants to merge 1 commit into
ComplianceAsCode:masterfrom
arian-zetier:fix/remove-display_login_attempts

Conversation

@arian-zetier

Copy link
Copy Markdown

Description:

Ubuntu 24.04 does not ship with pam_lastlog in its modules, and pam_lastlog2 (its successor) is not available. #14666 was reported by another user with much better details and references the relevant changes, though the big issue is that applying display_login_attempts's remediation to a 24.04 machine locks the user out from the tty console making it inaccessible in offline environments.

Rationale:

UBTU-24-300024 (V-270710) was removed in V1R5 STIG, and I do not see anything related to it for CIS, hence why it was removed from the default profile, though let me know if that's not the case. This was also removed in ansible-lockdown/UBUNTU24-STIG-Audit@97ce781

This would close #14666

Thanks!

pam_lastlog does not exist in Ubuntu 24.04, nor can pam_lastlog2 be
used.

Closes ComplianceAsCode#14666
@arian-zetier
arian-zetier requested a review from a team as a code owner August 21, 2026 21:22
@openshift-ci openshift-ci Bot added the needs-ok-to-test Used by openshift-ci bot. label Aug 21, 2026
@openshift-ci

openshift-ci Bot commented Aug 21, 2026

Copy link
Copy Markdown

Hi @arian-zetier. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@Mab879

Mab879 commented Aug 21, 2026

Copy link
Copy Markdown
Member

This will remove the rule from the data stream and can break things like tailoring. @ComplianceAsCode/ubuntu-maintainers is that acceptable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Used by openshift-ci bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

STIG remediation display_login_attempts uses removed pam_lastlog.so on Ubuntu 24.04

2 participants