Skip to content

Conversation

@jan-cerny
Copy link
Collaborator

The rule auditd_freq is parametrized by var_auditd_freq variable but the value of the variable wasn't honored by checks and remediations and is hardcoded to 50 instead. The reason was auditd_lineinfile template didn't support parametrizing by variables. In this commit, we will enhance the auditd_lineinfile template to support variables. Then, we will use the enhanced template to pass in the variable in rule auditd_freq.

Resolves: https://issues.redhat.com/browse/RHEL-64013

The rule `auditd_freq` is parametrized by `var_auditd_freq` variable but
the value of the variable wasn't honored by checks and remediations and
is hardcoded to 50 instead. The reason was `auditd_lineinfile` template
didn't support parametrizing by variables. In this commit, we will
enhance the `auditd_lineinfile` template to support variables.  Then, we
will use the enhanced template to pass in the variable in rule
`auditd_freq`.

Resolves: https://issues.redhat.com/browse/RHEL-64013
@jan-cerny jan-cerny added this to the 0.1.78 milestone Jul 17, 2025
@jan-cerny jan-cerny added the bugfix Fixes to reported bugs. label Jul 17, 2025
@vojtapolasek vojtapolasek self-assigned this Jul 17, 2025
Copy link
Collaborator

@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

I verified changes with Automatus on RHEL 8, 9, 10.
All tests pass.

@vojtapolasek vojtapolasek merged commit cdc5409 into ComplianceAsCode:master Jul 18, 2025
123 of 127 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes to reported bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants