Debian Codegraph @

tests/DS/sds_multiple_oval/first-oval.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
3 <generator>
4 <oval:product_name>vim, emacs</oval:product_name>
5 <oval:schema_version>5.5</oval:schema_version>
6 <oval:timestamp>2010-08-30T12:00:00-04:00</oval:timestamp>
7 </generator>
8 <definitions>
9 <definition class="compliance" id="oval:org.open-scap.f14:def:20000" version="1">
10 <metadata>
11 <title>Ensure that /tmp has its own partition or logical volume</title>
12 <reference ref_id="TBD" source="CCE"/>
13 <description>The /tmp directory is a world-writable directory used for temporary file storage. Verify that it has its own partition or logical volume.</description>
14 </metadata>
15 <criteria>
16 <criterion comment="Check in /etc/fstab for a /tmp mount point" test_ref="oval:org.open-scap.f14:tst:20000"/>
17 </criteria>
18 </definition>
19 </definitions>
20 <tests>
21 <ind-def:textfilecontent54_test check="only one" check_existence="at_least_one_exists" comment="look for /tmp partition or logical volume in /etc/fstab" id="oval:org.open-scap.f14:tst:20000" version="1">
22 <ind-def:object object_ref="oval:org.open-scap.f14:obj:20000"/>
23 <ind-def:state state_ref="oval:org.open-scap.f14:ste:20000"/>
24 </ind-def:textfilecontent54_test>
25 </tests>
26 <objects>
27 <ind-def:textfilecontent54_object comment="look for the partition mount point in /etc/fstab" id="oval:org.open-scap.f14:obj:20000" version="1">
28 <ind-def:path>/etc</ind-def:path>
29 <ind-def:filename>fstab</ind-def:filename>
30 <ind-def:pattern operation="pattern match">^[[:space:]]*[^[:space:]]+[[:space:]]+([^[:space:]]+)[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+</ind-def:pattern>
31 <!-- <ind-def:pattern operation="pattern match">^[\s]*[\S]+[\s]+([\S]+)[\s]+[\S]+[\s]+[\S]+[\s]+[\S]+[\s]+[\S]+</ind-def:pattern> -->
32 <ind-def:instance datatype="int" operation="greater than or equal">1</ind-def:instance>
33 </ind-def:textfilecontent54_object>
34 </objects>
35 <states>
36 <ind-def:textfilecontent54_state comment="/tmp mount point is defined" id="oval:org.open-scap.f14:ste:20000" version="1">
37 <ind-def:subexpression datatype="string" entity_check="all" operation="equals">/tmp</ind-def:subexpression>
38 </ind-def:textfilecontent54_state>
39 </states>
40 </oval_definitions>