Skip to content

Conversation

@ggbecker
Copy link
Member

@ggbecker ggbecker commented Dec 10, 2025

Description:

The following rules:

rsyslog_files_groupownership
rsyslog_files_ownership
rsyslog_files_permissions

Most likely this is what caused the change: https://gitlab.com/redhat/centos-stream/rpms/rsyslog/-/merge_requests/49/diffs

Rationale:

@ggbecker ggbecker added this to the 0.1.80 milestone Dec 10, 2025
@ggbecker
Copy link
Member Author

ggbecker commented Dec 10, 2025

it did not seem to help as I ran a custom set of hardening tests and the fails are still there :(

@ggbecker
Copy link
Member Author

/packit retest-failed

@ggbecker ggbecker marked this pull request as ready for review December 11, 2025 16:09
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Dec 11, 2025
@ggbecker
Copy link
Member Author

This is ready to review, all the test scenarios pass on RHEL9 both ansible and bash, and a custom productization also passed for RHEL9 and RHEL10. There might be an issue on RHEL8 ISM_O on testing farm, stating that /var/log/cron had 0644 instead of 0640, I've rerun the testing farm tests to see if it's a fluke, it's weird because if it is an issue I'd expect it to be present on every RHEL8 profile testing that has this rule selected. Let's see how it goes.

…ion.

A line in the rsyslog conf file as such

  #kern.* action(type="omfile" file="/dev/console")

Would get in the way of the remediation and be considered a valid log
file, with this modification such files are excluded.
Cover cases where File can be part of some other longer word, so the
regex consider File as a whole word, also make it case insensitive.
Our ansible remediation that includes the line /var/log/cron
add the line with only one space, and the previous regex was not
matching the line with one space only. This update will catch also the
case where the line has only one space between the first and second
parameters. For example: "cron.* /var/log/cron".
@ggbecker
Copy link
Member Author

I might have discovered how to fix the issue with the /var/log/cron file on ansible remediation, see: 628b2b2

let's see how testing works.

@openshift-ci
Copy link

openshift-ci bot commented Dec 11, 2025

@ggbecker: The following test 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-node-compliance 0b77174 link true /test e2e-aws-openshift-node-compliance

Full PR test history. Your PR dashboard.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rsyslog_files_* rule fails on every hardening for RHEL9/10

1 participant