Create rule socket_pcscd_enabled#14902
Open
jan-cerny wants to merge 4 commits into
Open
Conversation
Checks if a systemd socket is enabled.
Create new rule `socket_pcscd_enabled` and use it in RHEL 10 STIG. The RHEL 10 STIG requirement requires that "pcscd" socket must set to active. It directly mentions socket, so a rule checking the state of the socket better aligns with the requirement.
jan-cerny
requested review from
a team,
Mab879,
ggbecker,
marcusburghardt,
matusmarhefka and
vojtapolasek
as code owners
July 17, 2026 13:26
Mab879
requested changes
Jul 17, 2026
| cmd: systemctl -q list-unit-files --type socket | ||
| register: result_systemd_unit_files | ||
| changed_when: false | ||
| check_mode: false |
Member
There was a problem hiding this comment.
Add failed_when: service_exists.rc not in [0, 1] like service_disabled template. To prevent premature playbook failures
|
@jan-cerny: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Create new rule
socket_pcscd_enabledand use it in RHEL 10 STIG. The RHEL 10 STIG requirement requires that "pcscd" socket must set to active. It directly mentions socket, so a rule checking the state of the socket better aligns with the requirement.The checks and remediation are provided by template
socket-enabledthat is introduced by this PR as well.Rationale:
align our content with DISA STIG V1R1
Review Hints:
Run automatus for the rule - it will run the templated test scenario from the template.