Skip to content

Add service_kdump_disabled to RHEL 9 CCN profiles#14697

Merged
Mab879 merged 2 commits intoComplianceAsCode:masterfrom
vojtapolasek:rhel9_ccn_disable_kdump
May 7, 2026
Merged

Add service_kdump_disabled to RHEL 9 CCN profiles#14697
Mab879 merged 2 commits intoComplianceAsCode:masterfrom
vojtapolasek:rhel9_ccn_disable_kdump

Conversation

@vojtapolasek
Copy link
Copy Markdown
Collaborator

Description:

  • Add rule service_kdump_disabled to the CCN RHEL 9 control file under requirement A.8.SEC-RHEL4 ("Unnecessary Services are Disabled, Reducing the Attack Surface").
  • Update profile stability tests for ccn_advanced and ccn_intermediate profiles to reflect the new rule selection.

Rationale:

  • Disabling kdump reduces the attack surface by removing an unnecessary service. Kernel core dumps may contain the full contents of system memory and can exhaust disk space, causing denial of service. Additionally, leaving kdump enabled produces confusing errors during boot after remediation.

  • The rule uses the service_disabled template with medium severity and is already available for RHEL 9 (CCE-84232-8).

  • Fixes Systemd-tmpfiles errors on RHEL 9 boot #14582

Review Hints:

  • Only 3 files changed, all straightforward additions of a single rule ID — review all commits together.
  • Affected product: RHEL 9. Build with: ./build_product --datastream-only rhel9
  • The rule service_kdump_disabled is templated (service_disabled), so no rule-specific test scenarios are needed.
  • Key files to review:
    • products/rhel9/controls/ccn_rhel9.yml — rule added under A.8.SEC-RHEL4
    • tests/data/profile_stability/rhel9/ccn_advanced.profile — stability test updated
    • tests/data/profile_stability/rhel9/ccn_intermediate.profile — stability test updated
  • The rule is already used in other profiles/products (STIG for OL7, OL8, SLES), so it is well-established.

it decreases vulnerability surfaces and disabling it removes confusing errors while booting after remediation
@vojtapolasek vojtapolasek added this to the 0.1.81 milestone May 7, 2026
@vojtapolasek vojtapolasek added the RHEL9 Red Hat Enterprise Linux 9 product related. label May 7, 2026
@vojtapolasek vojtapolasek requested review from a team and matusmarhefka as code owners May 7, 2026 07:46
@vojtapolasek vojtapolasek added the Update Profile Issues or pull requests related to Profiles updates. label May 7, 2026
@vojtapolasek vojtapolasek added the CCN CCN Benchmark related. label May 7, 2026
@Arden97 Arden97 self-assigned this May 7, 2026
Copy link
Copy Markdown
Contributor

@Arden97 Arden97 left a comment

Choose a reason for hiding this comment

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

Custom pipeline run shows that /scanning/boot-errors/ccn_advanced no longer triggers systemd-tmpfiles errors, mentioned in the issue.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 7, 2026

@vojtapolasek: 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/e2e-aws-openshift-platform-compliance dde4d8e link true /test e2e-aws-openshift-platform-compliance
ci/prow/e2e-aws-openshift-node-compliance dde4d8e 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.

@Mab879 Mab879 merged commit a78ca75 into ComplianceAsCode:master May 7, 2026
66 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCN CCN Benchmark related. RHEL9 Red Hat Enterprise Linux 9 product related. Update Profile Issues or pull requests related to Profiles updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Systemd-tmpfiles errors on RHEL 9 boot

3 participants