Skip to content

Fix conditional in no_shelllogin_for_systemaccounts remediation#14206

Merged
dodys merged 1 commit intoComplianceAsCode:masterfrom
mpurg:fix_conditional_noshelllogin
Dec 3, 2025
Merged

Fix conditional in no_shelllogin_for_systemaccounts remediation#14206
dodys merged 1 commit intoComplianceAsCode:masterfrom
mpurg:fix_conditional_noshelllogin

Conversation

@mpurg
Copy link
Contributor

@mpurg mpurg commented Dec 2, 2025

Description:

  • Fix conditional in the awk command of no_shelllogin_for_systemaccounts remediation.

Rationale:

Fix for the conditional `$3 != root` in the awk command, which compared the UID field with an username. It worked as intended because it was comparing the UID of 0 against an undefined variable not the string "root".
@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label Dec 2, 2025
@openshift-ci
Copy link

openshift-ci bot commented Dec 2, 2025

Hi @mpurg. Thanks for your PR.

I'm waiting for a github.com 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.

@dodys dodys added the Bash Bash remediation update. label Dec 3, 2025
@dodys dodys added this to the 0.1.80 milestone Dec 3, 2025
@dodys dodys self-assigned this Dec 3, 2025
Copy link
Contributor

@dodys dodys left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@dodys dodys merged commit dbfad46 into ComplianceAsCode:master Dec 3, 2025
125 of 130 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bash Bash remediation update. needs-ok-to-test Used by openshift-ci bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants