Skip to content

Commit 3f5433e

Browse files
committed
Fix ol in product in rule file_permissions_var_log_audit in remedation
1 parent 0983b1b commit 3f5433e

File tree

2 files changed

+2
-2
lines changed
  • linux_os/guide/auditing/auditd_configure_rules/file_permissions_var_log_audit

2 files changed

+2
-2
lines changed

linux_os/guide/auditing/auditd_configure_rules/file_permissions_var_log_audit/ansible/shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
log_file: "{{ log_file_line.stdout | trim }}"
2929
when: (log_file_exists is not skipped) and (log_file_line.stdout is defined) and (log_file_line.stdout | length > 0)
3030

31-
{{% if 'ol' not in product and "rhel" not in product and 'almalinux' not in product %}}
31+
{{% if 'ol' not in families and "rhel" not in product and 'almalinux' not in product %}}
3232
- name: Get log files group
3333
ansible.builtin.command: grep -m 1 ^log_group /etc/audit/auditd.conf
3434
failed_when: false

linux_os/guide/auditing/auditd_configure_rules/file_permissions_var_log_audit/bash/shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ else
66
FILE="/var/log/audit/audit.log"
77
fi
88

9-
{{% if 'ol' not in product and "rhel" not in product %}}
9+
{{% if 'ol' not in families and "rhel" not in product %}}
1010
if LC_ALL=C grep -m 1 -q ^log_group /etc/audit/auditd.conf; then
1111
GROUP=$(awk -F "=" '/log_group/ {print $2}' /etc/audit/auditd.conf | tr -d ' ')
1212
if ! [ "${GROUP}" == 'root' ] ; then

0 commit comments

Comments
 (0)