Skip to content

Comments

RAN Hardening: Low Severity (dmesg restrict)#358

Closed
sebrandon1 wants to merge 1 commit intoopenshift-kni:mainfrom
sebrandon1:compliance_low_level_only
Closed

RAN Hardening: Low Severity (dmesg restrict)#358
sebrandon1 wants to merge 1 commit intoopenshift-kni:mainfrom
sebrandon1:compliance_low_level_only

Conversation

@sebrandon1
Copy link
Contributor

This is the only low level compliance failure I'm seeing in the compliance operator that stands alone in its own path: /etc/sysctl.d/75-sysctl_kernel_dmesg_restrict.conf

Enabling kernel.dmesg_restrict=1 is safe for Kubernetes and OpenShift because neither the control plane components nor workloads rely on direct access to dmesg for logging or operations. These platforms use systemd journals, CRI runtimes, and container stdout/stderr for log collection, so blocking user access to the kernel ring buffer has no functional impact.

Restricting dmesg prevents unprivileged users or compromised pods from gathering sensitive kernel information such as memory addresses or driver details, which could aid in exploits. Including this setting strengthens node-level security and aligns with common hardening practices in production clusters.

@openshift-ci openshift-ci bot requested review from ffromani and yanirq September 10, 2025 17:34
@openshift-ci
Copy link

openshift-ci bot commented Sep 10, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sebrandon1
Once this PR has been reviewed and has the lgtm label, please assign lack for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sebrandon1 sebrandon1 force-pushed the compliance_low_level_only branch from 0a19e32 to ab44b01 Compare September 10, 2025 19:47
@sebrandon1 sebrandon1 force-pushed the compliance_low_level_only branch from ab44b01 to 91c01f9 Compare September 10, 2025 19:49
@sebrandon1 sebrandon1 changed the title RAN Hardening: Low Severity RAN Hardening: Low Severity (dmesg restrict) Sep 10, 2025
@sebrandon1
Copy link
Contributor Author

Closing in favor of: #466

@sebrandon1 sebrandon1 closed this Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant