Skip to content

Create rule socket_pcscd_enabled#14902

Open
jan-cerny wants to merge 4 commits into
ComplianceAsCode:masterfrom
jan-cerny:pcscd
Open

Create rule socket_pcscd_enabled#14902
jan-cerny wants to merge 4 commits into
ComplianceAsCode:masterfrom
jan-cerny:pcscd

Conversation

@jan-cerny

Copy link
Copy Markdown
Collaborator

Description:

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.

The checks and remediation are provided by template socket-enabled that 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.

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 jan-cerny added this to the 0.1.82 milestone Jul 17, 2026
@jan-cerny jan-cerny added New Rule Issues or pull requests related to new Rules. STIG STIG Benchmark related. New Template Issues or pull requests related to new Templates. RHEL10 Red Hat Enterprise Linux 10 product related. labels Jul 17, 2026
@Mab879 Mab879 self-assigned this Jul 17, 2026

@Mab879 Mab879 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

CI fails seem valid.

cmd: systemctl -q list-unit-files --type socket
register: result_systemd_unit_files
changed_when: false
check_mode: false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add failed_when: service_exists.rc not in [0, 1] like service_disabled template. To prevent premature playbook failures

@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown

@jan-cerny: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/4.14-images ffd00a1 link true /test 4.14-images
ci/prow/e2e-aws-openshift-node-compliance ffd00a1 link true /test e2e-aws-openshift-node-compliance

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

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

Labels

New Rule Issues or pull requests related to new Rules. New Template Issues or pull requests related to new Templates. RHEL10 Red Hat Enterprise Linux 10 product related. STIG STIG Benchmark related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants