@@ -8,18 +8,10 @@ description: |-
88 ownership configured to protected against unauthorized access.
99
1010 Verify it by running the following command:
11- <pre>$ stat -c "%n %G" /sbin/auditctl /sbin/aureport /sbin/ausearch /sbin/autrace /sbin/auditd /sbin/audispd /sbin/augenrules
12-
13- /sbin/auditctl root
14- /sbin/aureport root
15- /sbin/ausearch root
16- {{% if product not in ["rhel10"] %}}/sbin/autrace root{{% endif %}}
17- /sbin/auditd root
18- {{% if 'rhel' not in product %}}/sbin/audispd root{{% endif %}}
19- /sbin/augenrules root
20- {{%- if 'rhel' in product %}}
21- /sbin/audisp-syslog root
22- {{%- endif %}}
11+ <pre>$ stat -c "%n %G" {{{ audit_binaries | join(" ")}}}
12+ {{% for binary in audit_binaries %}}
13+ {{{ binary }}} root
14+ {{% endfor %}}
2315 </pre>
2416
2517 Audit tools needed to successfully view and manipulate audit information
@@ -48,16 +40,10 @@ references:
4840
4941ocil : |-
5042 Verify it by running the following command:
51- <pre>$ stat -c "%n %G" /sbin/auditctl /sbin/aureport /sbin/ausearch /sbin/autrace /sbin/auditd /sbin/audispd /sbin/augenrules /sbin/audisp-syslog
52-
53- /sbin/auditctl root
54- /sbin/aureport root
55- /sbin/ausearch root
56- {{% if product not in ["rhel10"] %}}/sbin/autrace root{{% endif %}}
57- /sbin/auditd root
58- {{% if 'rhel' not in product %}}/sbin/audispd root{{% endif %}}
59- /sbin/augenrules root
60- {{% if 'rhel' in product %}}/sbin/audisp-syslog root{{% endif %}}
43+ <pre>$ stat -c "%n %G" {{{ audit_binaries | join(" ")}}}
44+ {{% for binary in audit_binaries %}}
45+ {{{ binary }}} root
46+ {{% endfor %}}
6147 </pre>
6248
6349 If the command does not return all the above lines, the missing ones
@@ -72,13 +58,5 @@ ocil: |-
7258template :
7359 name : file_groupowner
7460 vars :
75- filepath :
76- - /sbin/auditctl
77- - /sbin/aureport
78- - /sbin/ausearch
79- {{% if product not in ["rhel10"] %}}- /sbin/autrace{{% endif %}}
80- - /sbin/auditd
81- {{% if 'rhel' not in product and 'ubuntu' not in product %}}- /sbin/audispd{{% endif %}}
82- - /sbin/augenrules
83- {{% if 'rhel' in product %}}- /sbin/audisp-syslog{{% endif %}}
61+ filepath : {{{ audit_binaries }}}
8462 gid_or_name : ' 0'
0 commit comments