-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #227 : Add system_audit subsection in rootcheck #228
Conversation
The PR adds system_audit subsection configuration in rootcheck
@rshad Please review. |
Hi @djmgit ! Thank you again for contributing to Wazuh. Many interesting changes. I'll be reviewing this PR as soon as possible. Kr, Rshad |
Hi all! Having set, $ossec_rootcheck_system_audit = [
"/var/ossec/etc/shared/system_audit_rcl.txt",
"/var/ossec/etc/shared/system_audit_ssh.txt",
] Puppet Output
And when setting,
Added Changes
So, when I tested the PR I replaced,
by
Kr, Rshad |
manifests/agent.pp
Outdated
@@ -81,6 +81,7 @@ | |||
$ossec_rootcheck_frequency = $wazuh::params_agent::ossec_rootcheck_frequency, | |||
$ossec_rootcheck_rootkit_files = $wazuh::params_agent::ossec_rootcheck_rootkit_files, | |||
$ossec_rootcheck_rootkit_trojans = $wazuh::params_agent::ossec_rootcheck_rootkit_trojans, | |||
$ossec_rootcheck_system_audit = $wazuh::params_agent::default_rootcheck_system_audit, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
manifests/params_agent.pp
Outdated
$default_rootcheck_system_audit = [ | ||
"./shared/system_audit_rcl.txt", | ||
"./shared/system_audit_ssh.txt", | ||
] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
templates/fragments/_rootcheck.erb
Outdated
@@ -35,6 +35,11 @@ | |||
<% if @ossec_rootcheck_rootkit_trojans-%> | |||
<rootkit_trojans><%= @ossec_rootcheck_rootkit_trojans %></rootkit_trojans> | |||
<%- end -%> | |||
<%- if @ossec_rootcheck_system_audit -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would check if the list is empty or not, rather than checking if it's defined.
Changed in 96e2e89
Thanks,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rshad ah! my bad, thanks for pointing it out and fixing it :)
@rshad Hi, great work :) Thanks for fixing and improving this PR. |
Hi @djmgit ! With relative paths I got the following error:
With absolute paths it worked, but I removed them and set the list as empty because we set our wazuh-puppet configuration to generate an exact or most-similar configuration to the one given by default when installing Kr, Rshad |
The PR adds system_audit subsection configuration in rootcheck