-
Notifications
You must be signed in to change notification settings - Fork 708
/
Copy pathaudit_rules_augenrules.xml
31 lines (28 loc) · 1.35 KB
/
audit_rules_augenrules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<def-group>
<definition class="compliance" id="audit_rules_augenrules" version="1">
<metadata>
<title>Record Any Attempts to Run semanage</title>
<affected family="unix">
<platform>multi_platform_all</platform>
</affected>
<description>Test if augenrules is enabled for audit rules.</description>
</metadata>
<criteria>
<criterion comment="audit augenrules" test_ref="test_audit_rules_augenrules" />
</criteria>
</definition>
<!-- Test the augenrules case -->
<ind:textfilecontent54_test check="all" comment="audit augenrules" id="test_audit_rules_augenrules" version="1">
<ind:object object_ref="object_audit_rules_augenrules" />
</ind:textfilecontent54_test>
<ind:textfilecontent54_object id="object_audit_rules_augenrules" version="1">
{{% if product in ['rhel10', 'ol10'] %}}
<ind:filepath>/usr/lib/systemd/system/audit-rules.service</ind:filepath>
<ind:pattern operation="pattern match">^ExecStart=\/sbin\/augenrules.*$</ind:pattern>
{{% else %}}
<ind:filepath>/usr/lib/systemd/system/auditd.service</ind:filepath>
<ind:pattern operation="pattern match">^(ExecStartPost=\-\/sbin\/augenrules.*$|Requires=augenrules.service)</ind:pattern>
{{% endif %}}
<ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
</ind:textfilecontent54_object>
</def-group>