From daeb8e7f358c2ec84a345e7311a0186cfd2f88d9 Mon Sep 17 00:00:00 2001 From: Vojtech Polasek Date: Wed, 4 Sep 2024 17:02:33 +0200 Subject: [PATCH] align mentions of auditd.service within the auditing group description --- linux_os/guide/auditing/group.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/linux_os/guide/auditing/group.yml b/linux_os/guide/auditing/group.yml index add5c91f8ab..0bf7ef22557 100644 --- a/linux_os/guide/auditing/group.yml +++ b/linux_os/guide/auditing/group.yml @@ -1,5 +1,15 @@ documentation_complete: true +{{% if product == 'rhel10' %}} +{{% set audit_loading_systemd_directive="ExecStart" %}} +{{% set audit_loading_systemd_directive_suffix="=" %}} +{{% set audit_loading_service_file="audit-rules.service" %}} +{{% else %}} +{{% set audit_loading_systemd_directive="ExecStartPost" %}} +{{% set audit_loading_service_file="auditd.service" %}} +{{% set audit_loading_systemd_directive_suffix="=-" %}} +{{% endif %}} + title: 'System Accounting with auditd' description: |- @@ -19,17 +29,17 @@ description: |- daemon can use the auditctl utility to read audit rules from the /etc/audit/audit.rules configuration file during daemon startup, and load them into the kernel. The expected behavior is configured via the - appropriate ExecStartPost directive setting in the - /usr/lib/systemd/system/auditd.service configuration file. + appropriate {{{ audit_loading_systemd_directive }}} directive setting in the + /usr/lib/systemd/system/{{{ audit_loading_service_file }}} configuration file. To instruct the auditd daemon to use the augenrules program to read audit rules (default configuration), use the following setting: -
ExecStartPost=-/sbin/augenrules --load
- in the /usr/lib/systemd/system/auditd.service configuration file. +
{{{ audit_loading_systemd_directive ~ audit_loading_systemd_directive_suffix }}}/sbin/augenrules --load
+ in the /usr/lib/systemd/system/{{{ audit_loading_service_file }}} configuration file. In order to instruct the auditd daemon to use the auditctl utility to read audit rules, use the following setting: -
ExecStartPost=-/sbin/auditctl -R /etc/audit/audit.rules
- in the /usr/lib/systemd/system/auditd.service configuration file. - Refer to [Service] section of the /usr/lib/systemd/system/auditd.service +
{{{ audit_loading_systemd_directive ~ audit_loading_systemd_directive_suffix }}}/sbin/auditctl -R /etc/audit/audit.rules
+ in the /usr/lib/systemd/system/{{{ audit_loading_service_file }}} configuration file. + Refer to [Service] section of the /usr/lib/systemd/system/{{{ audit_loading_service_file }}} configuration file for further details.

Government networks often have substantial auditing