forked from ComplianceAsCode/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate_OVAL_mount_option
20 lines (19 loc) · 1.17 KB
/
template_OVAL_mount_option
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<def-group>
<definition class="compliance" id="{{{ _RULE_ID }}}" version="1">
{{{ oval_metadata(MOUNTPOINT + " should be mounted with mount option " + MOUNTOPTION + ".") }}}
<criteria>
<criterion comment="{{{ MOUNTOPTION }}} on {{{ MOUNTPOINT }}}" test_ref="test_{{{ POINTID }}}_partition_{{{ MOUNTOPTION }}}" />
</criteria>
</definition>
<linux:partition_test check="all" check_existence="all_exist"
id="test_{{{ POINTID }}}_partition_{{{ MOUNTOPTION }}}" version="1" comment="{{{ MOUNTOPTION }}} on {{{ MOUNTPOINT }}}">
<linux:object object_ref="object_{{{ POINTID }}}_partition_{{{ MOUNTOPTION }}}" />
<linux:state state_ref="state_{{{ POINTID }}}_partition_{{{ MOUNTOPTION }}}" />
</linux:partition_test>
<linux:partition_object id="object_{{{ POINTID }}}_partition_{{{ MOUNTOPTION }}}" version="1">
<linux:mount_point>{{{ MOUNTPOINT }}}</linux:mount_point>
</linux:partition_object>
<linux:partition_state id="state_{{{ POINTID }}}_partition_{{{ MOUNTOPTION }}}" version="1">
<linux:mount_options datatype="string" entity_check="at least one" operation="equals">{{{ MOUNTOPTION }}}</linux:mount_options>
</linux:partition_state>
</def-group>