| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<ds:data-stream-collection xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" id="scap_org.open-scap_collection_from_xccdf_multiple-oval-xccdf.xml.bz2" schematron-version="1.2"><ds:data-stream id="scap_org.open-scap_datastream_from_xccdf_multiple-oval-xccdf.xml.bz2" scap-version="1.2" use-case="OTHER"><ds:checklists><ds:component-ref id="scap_org.open-scap_cref_multiple-oval-xccdf.xml.bz2" xlink:href="#scap_org.open-scap_comp_multiple-oval-xccdf.xml.bz2"><cat:catalog><cat:uri name="first-oval.xml" uri="#scap_org.open-scap_cref_first-oval.xml"/><cat:uri name="second-oval.xml" uri="#scap_org.open-scap_cref_second-oval.xml"/></cat:catalog></ds:component-ref></ds:checklists><ds:checks><ds:component-ref id="scap_org.open-scap_cref_first-oval.xml" xlink:href="#scap_org.open-scap_comp_first-oval.xml"/><ds:component-ref id="scap_org.open-scap_cref_second-oval.xml" xlink:href="#scap_org.open-scap_comp_second-oval.xml"/></ds:checks></ds:data-stream><ds:component id="scap_org.open-scap_comp_first-oval.xml" timestamp="2024-06-12T14:33:54"><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 |
|
| 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></ds:component><ds:component id="scap_org.open-scap_comp_second-oval.xml" timestamp="2024-06-12T14:33:54"><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"> |
| 41 |
<generator> |
| 42 |
<oval:product_name>vim, emacs</oval:product_name> |
| 43 |
<oval:schema_version>5.5</oval:schema_version> |
| 44 |
<oval:timestamp>2010-08-30T12:00:00-04:00</oval:timestamp> |
| 45 |
</generator> |
| 46 |
<definitions> |
| 47 |
<definition class="compliance" id="oval:org.open-scap.f14:def:20001" version="1"> |
| 48 |
<metadata> |
| 49 |
<title>Ensure that /tmp has its own partition or logical volume</title> |
| 50 |
<reference ref_id="TBD" source="CCE"/> |
| 51 |
<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> |
| 52 |
</metadata> |
| 53 |
<criteria> |
| 54 |
<criterion comment="Check in /etc/fstab for a /tmp mount point" test_ref="oval:org.open-scap.f14:tst:20001"/> |
| 55 |
</criteria> |
| 56 |
</definition> |
| 57 |
</definitions> |
| 58 |
<tests> |
| 59 |
<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:20001" version="1"> |
| 60 |
<ind-def:object object_ref="oval:org.open-scap.f14:obj:20001"/> |
| 61 |
<ind-def:state state_ref="oval:org.open-scap.f14:ste:20001"/> |
| 62 |
</ind-def:textfilecontent54_test> |
| 63 |
</tests> |
| 64 |
<objects> |
| 65 |
<ind-def:textfilecontent54_object comment="look for the partition mount point in /etc/fstab" id="oval:org.open-scap.f14:obj:20001" version="1"> |
| 66 |
<ind-def:path>/etc</ind-def:path> |
| 67 |
<ind-def:filename>fstab</ind-def:filename> |
| 68 |
<ind-def:pattern operation="pattern match">^[[:space:]]*[^[:space:]]+[[:space:]]+([^[:space:]]+)[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+</ind-def:pattern> |
| 69 |
|
| 70 |
<ind-def:instance datatype="int" operation="greater than or equal">1</ind-def:instance> |
| 71 |
</ind-def:textfilecontent54_object> |
| 72 |
</objects> |
| 73 |
<states> |
| 74 |
<ind-def:textfilecontent54_state comment="/tmp mount point is defined" id="oval:org.open-scap.f14:ste:20001" version="1"> |
| 75 |
<ind-def:subexpression datatype="string" entity_check="all" operation="equals">/tmp</ind-def:subexpression> |
| 76 |
</ind-def:textfilecontent54_state> |
| 77 |
</states> |
| 78 |
</oval_definitions></ds:component><ds:component id="scap_org.open-scap_comp_multiple-oval-xccdf.xml.bz2" timestamp="2024-06-12T14:33:54"><xccdf:Benchmark xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="xccdf_cdf_benchmark_scap-fedora14-xccdf.xml" resolved="1" style="SCAP_1.2" xml:lang="en" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.2 http://scap.nist.gov/schema/xccdf/1.2/xccdf_1.2.xsd http://cpe.mitre.org/dictionary/2.0 http://scap.nist.gov/schema/cpe/2.3/cpe-dictionary_2.3.xsd"> |
| 79 |
<xccdf:status date="2011-10-12">draft</xccdf:status> |
| 80 |
<xccdf:title>Example of SCAP Security Guidance</xccdf:title> |
| 81 |
<xccdf:description>This example security guidance has been created to demonstrate SCAP functionality |
| 82 |
on Linux.</xccdf:description> |
| 83 |
<xccdf:version>0.1</xccdf:version> |
| 84 |
<xccdf:model system="urn:xccdf:scoring:default"/> |
| 85 |
<xccdf:model system="urn:xccdf:scoring:flat"/> |
| 86 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.1.1"> |
| 87 |
<xccdf:title xml:lang="en">Create Separate Partition or Logical Volume for /tmp</xccdf:title> |
| 88 |
<xccdf:description xml:lang="en"> |
| 89 |
The /tmp directory is a world-writable directory used for |
| 90 |
temporary file storage. Ensure that it has its own partition or logical volume.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 91 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 92 |
Because software may need to use /tmp to temporarily store large files, ensure |
| 93 |
that it is of adequate size. For a modern, general-purpose system, 10GB should be adequate. Smaller or larger sizes could be used, depending on |
| 94 |
the availability of space on the drive and the system’s operating requirements |
| 95 |
</xccdf:description> |
| 96 |
<xccdf:Rule id="xccdf_cdf_rule_first-oval" selected="true" weight="10.0"> |
| 97 |
<xccdf:title xml:lang="en">Ensure that /tmp has its own partition or logical volume</xccdf:title> |
| 98 |
<xccdf:description xml:lang="en">The /tmp directory is a world-writable directory used for temporary file storage. Ensure that it has its own partition or logical volume.</xccdf:description> |
| 99 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 100 |
<xccdf:check-content-ref href="first-oval.xml" name="oval:org.open-scap.f14:def:20000"/> |
| 101 |
</xccdf:check> |
| 102 |
</xccdf:Rule> |
| 103 |
<xccdf:Rule id="xccdf_cdf_rule_second-oval" selected="true" weight="10.0"> |
| 104 |
<xccdf:title xml:lang="en">Ensure that /tmp has its own partition or logical volume</xccdf:title> |
| 105 |
<xccdf:description xml:lang="en">The /tmp directory is a world-writable directory used for temporary file storage. Ensure that it has its own partition or logical volume.</xccdf:description> |
| 106 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 107 |
<xccdf:check-content-ref href="second-oval.xml" name="oval:org.open-scap.f14:def:20001"/> |
| 108 |
</xccdf:check> |
| 109 |
</xccdf:Rule> |
| 110 |
</xccdf:Group> |
| 111 |
</xccdf:Benchmark></ds:component></ds:data-stream-collection> |