@@ -83,4 +86,5 @@
^Wants\=.*aidecheck-notify.service.*$
1
+{{% endif %}}
diff --git a/linux_os/guide/system/software/integrity/software-integrity/aide/aide_scan_notification/rule.yml b/linux_os/guide/system/software/integrity/software-integrity/aide/aide_scan_notification/rule.yml
index 8ba2e206748..f9d1d6fa01d 100644
--- a/linux_os/guide/system/software/integrity/software-integrity/aide/aide_scan_notification/rule.yml
+++ b/linux_os/guide/system/software/integrity/software-integrity/aide/aide_scan_notification/rule.yml
@@ -57,23 +57,41 @@ ocil_clause: 'AIDE has not been configured or has not been configured to notify
ocil: |-
To determine that periodic AIDE execution has been scheduled, run the following command:
+{{% if product in ["sle15"] %}}
+ $ sudo systemctl status aidecheck-notify|grep loaded
+ The output should return that the service is loaded.
+ Also we should make sure that notification service is started by the check:
+ $ sudo systemctl list-dependencies --reverse aidecheck-notify
,
+ which should display the aidecheck.service in the dependency tree
+{{% else %}}
$ grep aide /etc/crontab
The output should return something similar to the following:
05 4 * * * root /usr/sbin/aide --check | /bin/mail -s "$(hostname) - AIDE Integrity Check" root@localhost
The email address that the notifications are sent to can be changed by overriding
.
+{{% endif %}}
fixtext: |-
Configure the file integrity tool to run automatically on the system at least weekly and to notify designated personnel if baseline configurations are changed in an unauthorized manner.
The AIDE tool can be configured to email designated personnel with the use of the cron system.
The following example output is generic. It will set cron to run AIDE daily and to send email at the completion of the analysis.
-
+{{% if product in ["sle15"] %}}
+ $ cat > /etc/systemd/system/aidecheck-notify.service <
Date: Thu, 2 Nov 2023 12:13:32 +0200
Subject: [PATCH 6/6] Restore CRONTAB and CRONDIRS variables needed for non-SLE
solution
Thanks to @jan-cerny for the note :bow:
---
.../aide/aide_scan_notification/bash/shared.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/linux_os/guide/system/software/integrity/software-integrity/aide/aide_scan_notification/bash/shared.sh b/linux_os/guide/system/software/integrity/software-integrity/aide/aide_scan_notification/bash/shared.sh
index ea2199868f3..c3a4301f91c 100644
--- a/linux_os/guide/system/software/integrity/software-integrity/aide/aide_scan_notification/bash/shared.sh
+++ b/linux_os/guide/system/software/integrity/software-integrity/aide/aide_scan_notification/bash/shared.sh
@@ -25,6 +25,9 @@ cat > /etc/systemd/system/aidecheck-notify.service <