| 1 | <?xml version="1.0"?> |
| 2 | <oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd"> |
| 3 | |
| 4 | <generator> |
| 5 | <oval:product_name>file</oval:product_name> |
| 6 | <oval:product_version>1.0</oval:product_version> |
| 7 | <oval:schema_version>5.10.1</oval:schema_version> |
| 8 | <oval:timestamp>2008-03-31T00:00:00-00:00</oval:timestamp> |
| 9 | </generator> |
| 10 | |
| 11 | <definitions> |
| 12 | <definition class="compliance" id="oval:nist.validation.unixFileTest:def:172" version="1"> |
| 13 | <metadata> |
| 14 | <title>Test that the @recurse property is properly supported using the specified value</title> |
| 15 | <description>Make sure that the value specified, for the @recurse property, is properly supported for the unix-def:file_test.</description> |
| 16 | <expected_results> |
| 17 | <result configuration="1">PASS</result> |
| 18 | </expected_results> |
| 19 | </metadata> |
| 20 | <criteria operator="AND"> |
| 21 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:172" comment="test @recurse='symlinks' property"/> |
| 22 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:17201" comment="test @recurse='symlinks' property"/> |
| 23 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:17202" comment="test @recurse='symlinks' property"/> |
| 24 | </criteria> |
| 25 | </definition> |
| 26 | <definition class="compliance" id="oval:nist.validation.unixFileTest:def:174" version="1"> |
| 27 | <metadata> |
| 28 | <title>Test that the @recurse property is properly supported using the specified value</title> |
| 29 | <description>Make sure that the value specified, for the @recurse property, is properly supported for the unix-def:file_test.</description> |
| 30 | <expected_results> |
| 31 | <result configuration="1">PASS</result> |
| 32 | </expected_results> |
| 33 | </metadata> |
| 34 | <criteria operator="AND"> |
| 35 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:174" comment="test @recurse='symlinks' property"/> |
| 36 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:17401" comment="test @recurse='symlinks' property"/> |
| 37 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:17402" comment="test @recurse='symlinks' property"/> |
| 38 | </criteria> |
| 39 | </definition> |
| 40 | <definition class="compliance" id="oval:nist.validation.unixFileTest:def:175" version="1"> |
| 41 | <metadata> |
| 42 | <title>Test that the @recurse property is properly supported using the specified value</title> |
| 43 | <description>Make sure that the value specified, for the @recurse property, is properly supported for the unix-def:file_test.</description> |
| 44 | <expected_results> |
| 45 | <result configuration="1">PASS</result> |
| 46 | </expected_results> |
| 47 | </metadata> |
| 48 | <criteria operator="AND"> |
| 49 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:175" comment="test @recurse='symlinks' property"/> |
| 50 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:17501" comment="test @recurse='symlinks' property"/> |
| 51 | <criterion test_ref="oval:nist.validation.unixFileTest:tst:17502" comment="test @recurse='symlinks' property"/> |
| 52 | </criteria> |
| 53 | </definition> |
| 54 | <definition class="compliance" id="oval:nist.validation.unixFileTest:def:181" version="1"> |
| 55 | <metadata> |
| 56 | <title>Test that the @recurse_direction='up' property is properly supported using the specified value</title> |
| 57 | <description>Make sure that the value specified, for the @recurse_direction='up' property, is properly supported for the unix-def:file_test.</description> |
| 58 | <expected_results> |
| 59 | <result configuration="1">PASS</result> |
| 60 | </expected_results> |
| 61 | </metadata> |
| 62 | <criteria> |
| 63 | <criterion comment="test @recurse_direction='up' property" negate="false" test_ref="oval:nist.validation.unixFileTest:tst:181"/> |
| 64 | </criteria> |
| 65 | </definition> |
| 66 | <definition class="compliance" id="oval:nist.validation.unixFileTest:def:182" version="1"> |
| 67 | <metadata> |
| 68 | <title>Test that the @recurse property is properly supported using the specified value</title> |
| 69 | <description>Make sure that the value specified, for the @recurse property, is properly supported for the unix-def:file_test.</description> |
| 70 | <expected_results> |
| 71 | <result configuration="1">PASS</result> |
| 72 | </expected_results> |
| 73 | </metadata> |
| 74 | <criteria> |
| 75 | <criterion comment="test @recurse_direction='up' property" negate="false" test_ref="oval:nist.validation.unixFileTest:tst:182"/> |
| 76 | </criteria> |
| 77 | </definition> |
| 78 | </definitions> |
| 79 | |
| 80 | <tests> |
| 81 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:172" check="at least one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 82 | <object object_ref="oval:nist.validation.unixFileTest:obj:172"/> |
| 83 | <state state_ref="oval:nist.validation.unixFileTest:ste:172"/> |
| 84 | </file_test> |
| 85 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:17201" check="at least one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 86 | <object object_ref="oval:nist.validation.unixFileTest:obj:172"/> |
| 87 | <state state_ref="oval:nist.validation.unixFileTest:ste:17201"/> |
| 88 | </file_test> |
| 89 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:17202" check="at least one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 90 | <object object_ref="oval:nist.validation.unixFileTest:obj:172"/> |
| 91 | <state state_ref="oval:nist.validation.unixFileTest:ste:17202"/> |
| 92 | </file_test> |
| 93 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:174" check="at least one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 94 | <object object_ref="oval:nist.validation.unixFileTest:obj:174"/> |
| 95 | <state state_ref="oval:nist.validation.unixFileTest:ste:174"/> |
| 96 | </file_test> |
| 97 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:17401" check="only one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 98 | <object object_ref="oval:nist.validation.unixFileTest:obj:174"/> |
| 99 | <state state_ref="oval:nist.validation.unixFileTest:ste:17401"/> |
| 100 | </file_test> |
| 101 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:17402" check="only one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 102 | <object object_ref="oval:nist.validation.unixFileTest:obj:174"/> |
| 103 | <state state_ref="oval:nist.validation.unixFileTest:ste:17402"/> |
| 104 | </file_test> |
| 105 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:175" check="at least one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 106 | <object object_ref="oval:nist.validation.unixFileTest:obj:175"/> |
| 107 | <state state_ref="oval:nist.validation.unixFileTest:ste:175"/> |
| 108 | </file_test> |
| 109 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:17501" check="only one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 110 | <object object_ref="oval:nist.validation.unixFileTest:obj:175"/> |
| 111 | <state state_ref="oval:nist.validation.unixFileTest:ste:17501"/> |
| 112 | </file_test> |
| 113 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:17502" check="only one" check_existence="at_least_one_exists" comment="test @recurse='symlinks' property" version="1"> |
| 114 | <object object_ref="oval:nist.validation.unixFileTest:obj:175"/> |
| 115 | <state state_ref="oval:nist.validation.unixFileTest:ste:17502"/> |
| 116 | </file_test> |
| 117 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:181" check="all" check_existence="only_one_exists" comment="test @recurse_direction='up' property" version="1"> |
| 118 | <object object_ref="oval:nist.validation.unixFileTest:obj:181"/> |
| 119 | <state state_ref="oval:nist.validation.unixFileTest:ste:181"/> |
| 120 | </file_test> |
| 121 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:182" check="all" check_existence="at_least_one_exists" comment="test @recurse_direction='up' property" version="1"> |
| 122 | <object object_ref="oval:nist.validation.unixFileTest:obj:182"/> |
| 123 | <state state_ref="oval:nist.validation.unixFileTest:ste:182"/> |
| 124 | </file_test> |
| 125 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:18201" check="at least one" check_existence="at_least_one_exists" comment="test @recurse_direction='up' property" version="1"> |
| 126 | <object object_ref="oval:nist.validation.unixFileTest:obj:182"/> |
| 127 | <state state_ref="oval:nist.validation.unixFileTest:ste:18201"/> |
| 128 | </file_test> |
| 129 | <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:tst:18202" check="at least one" check_existence="at_least_one_exists" comment="test @recurse_direction='up' property" version="1"> |
| 130 | <object object_ref="oval:nist.validation.unixFileTest:obj:182"/> |
| 131 | <state state_ref="oval:nist.validation.unixFileTest:ste:18202"/> |
| 132 | </file_test> |
| 133 | </tests> |
| 134 | |
| 135 | <objects> |
| 136 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:obj:172" comment="@recurse='symlinks'" version="1"> |
| 137 | <behaviors recurse_file_system="local" recurse="symlinks" recurse_direction="down" max_depth="-1"/> |
| 138 | <path operation="equals" datatype="string">/tmp/scapVal/File-Test-Level2/Level3-Folder040</path> |
| 139 | <filename xsi:nil="true" datatype="string"/> |
| 140 | <filter xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" action="exclude">oval:nist.validation.unixFileTest:ste:17101</filter> |
| 141 | </file_object> |
| 142 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:obj:174" comment="@recurse='symlinks'" version="1"> |
| 143 | <behaviors max_depth="1" recurse_file_system="all" recurse_direction="down" recurse="symlinks"/> |
| 144 | <path operation="equals" datatype="string">/tmp/scapVal/File-Test-Level2/Level3-Folder040</path> |
| 145 | <filename operation="pattern match">.+</filename> |
| 146 | </file_object> |
| 147 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:obj:175" comment="@recurse='symlinks'" version="1"> |
| 148 | <behaviors recurse_file_system="all" recurse="symlinks" recurse_direction="down" max_depth="-1"/> |
| 149 | <path operation="equals" datatype="string">/tmp/scapVal/File-Test-Level2/Level3-Folder040</path> |
| 150 | <filename operation="pattern match">.+</filename> |
| 151 | </file_object> |
| 152 | |
| 153 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:obj:181" comment="@recurse='symlinks and directories'" version="1"> |
| 154 | <behaviors max_depth="0" recurse_file_system="local" recurse="symlinks and directories" recurse_direction="up"/> |
| 155 | <path>/tmp/scapVal/File-Test-Level2/Level3-Folder010</path> |
| 156 | <filename datatype="string" operation="pattern match">.+</filename> |
| 157 | </file_object> |
| 158 | <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:obj:182" comment="@recurse='symlinks and directories'" version="1"> |
| 159 | <behaviors max_depth="1" recurse_file_system="local" recurse_direction="up"/> |
| 160 | <path>/tmp/scapVal-Sym/File-Test-Level2-SymLinked/Level3-SymLinked-Folder010/Level4-Folder</path> |
| 161 | <filename datatype="string" operation="pattern match">.+</filename> |
| 162 | </file_object> |
| 163 | </objects> |
| 164 | |
| 165 | <states> |
| 166 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:172" version="1"> |
| 167 | <path datatype="string" var_check="at least one" var_ref="oval:nist.validation.unixFileTest:var:172" entity_check="at least one"/> |
| 168 | <type operation="pattern match" datatype="string">directory</type> |
| 169 | </file_state> |
| 170 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:17201" version="1"> |
| 171 | <path datatype="string">/tmp/scapVal/File-Test-Level2/Level3-Folder040</path> |
| 172 | <type datatype="string">directory</type> |
| 173 | </file_state> |
| 174 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:17202" version="1"> |
| 175 | <path datatype="string">/tmp/scapVal/File-Test-Level2/Level3-Folder040/this_is_a_symlink/Level3-SymLinked-Folder010</path> |
| 176 | <type datatype="string" operation="case insensitive equals">DirectorY</type> |
| 177 | </file_state> |
| 178 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:174" version="1"> |
| 179 | <filename datatype="string" var_check="at least one" var_ref="oval:nist.validation.unixFileTest:var:174" entity_check="at least one"/> |
| 180 | <type operation="pattern match">regular|symbolic link</type> |
| 181 | </file_state> |
| 182 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:17401" version="1"> |
| 183 | <filepath>/tmp/scapVal/File-Test-Level2/Level3-Folder040/this_is_a_symlink/File-Test-Sym-Level2.txt</filepath> |
| 184 | <path>/tmp/scapVal/File-Test-Level2/Level3-Folder040/this_is_a_symlink</path> |
| 185 | <filename>File-Test-Sym-Level2.txt</filename> |
| 186 | <type>regular</type> |
| 187 | </file_state> |
| 188 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:17402" version="1"> |
| 189 | <filepath operation="equals" datatype="string">/tmp/scapVal/File-Test-Level2/Level3-Folder040/this_is_a_symlink</filepath> |
| 190 | <path>/tmp/scapVal/File-Test-Level2/Level3-Folder040</path> |
| 191 | <filename>this_is_a_symlink</filename> |
| 192 | <type operation="pattern match">^symbolic link$</type> |
| 193 | </file_state> |
| 194 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:175" version="1"> |
| 195 | <filename datatype="string" var_check="at least one" var_ref="oval:nist.validation.unixFileTest:var:175" entity_check="at least one"/> |
| 196 | <type operation="pattern match">regular|symbolic link</type> |
| 197 | </file_state> |
| 198 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:17501" version="1"> |
| 199 | <filepath>/tmp/scapVal/File-Test-Level2/Level3-Folder040/this_is_a_symlink/File-Test-Sym-Level2.txt</filepath> |
| 200 | <path>/tmp/scapVal/File-Test-Level2/Level3-Folder040/this_is_a_symlink</path> |
| 201 | <filename>File-Test-Sym-Level2.txt</filename> |
| 202 | <type>regular</type> |
| 203 | </file_state> |
| 204 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:17502" version="1"> |
| 205 | <filepath operation="equals" datatype="string">/tmp/scapVal/File-Test-Level2/Level3-Folder040/this_is_a_symlink</filepath> |
| 206 | <path>/tmp/scapVal/File-Test-Level2/Level3-Folder040</path> |
| 207 | <filename>this_is_a_symlink</filename> |
| 208 | <type operation="pattern match">^symbolic link$</type> |
| 209 | </file_state> |
| 210 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:181" version="1"> |
| 211 | <filepath>/tmp/scapVal/File-Test-Level2/Level3-Folder010/Level3-File010.txt</filepath> |
| 212 | <path>/tmp/scapVal/File-Test-Level2/Level3-Folder010</path> |
| 213 | <filename>Level3-File010.txt</filename> |
| 214 | <type>regular</type> |
| 215 | </file_state> |
| 216 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:182" version="1"> |
| 217 | <filepath datatype="string" var_check="at least one" var_ref="oval:nist.validation.unixFileTest:var:182" entity_check="at least one"/> |
| 218 | <type>regular</type> |
| 219 | </file_state> |
| 220 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:18201" version="1"> |
| 221 | <filepath>/tmp/scapVal-Sym/File-Test-Level2-SymLinked/Level3-SymLinked-Folder010/Level4-Folder/Level4-File.txt</filepath> |
| 222 | <path>/tmp/scapVal-Sym/File-Test-Level2-SymLinked/Level3-SymLinked-Folder010/Level4-Folder</path> |
| 223 | <filename>Level4-File.txt</filename> |
| 224 | <type>regular</type> |
| 225 | </file_state> |
| 226 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:18202" version="1"> |
| 227 | <filepath>/tmp/scapVal-Sym/File-Test-Level2-SymLinked/Level3-SymLinked-Folder010/Level3-File.txt</filepath> |
| 228 | <path>/tmp/scapVal-Sym/File-Test-Level2-SymLinked/Level3-SymLinked-Folder010</path> |
| 229 | <filename>Level3-File.txt</filename> |
| 230 | <type>regular</type> |
| 231 | </file_state> |
| 232 | |
| 233 | <file_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:nist.validation.unixFileTest:ste:17101" version="1"> |
| 234 | <type datatype="string" operation="case insensitive equals">SYMbolic link</type> |
| 235 | </file_state> |
| 236 | </states> |
| 237 | |
| 238 | <variables> |
| 239 | <constant_variable id="oval:nist.validation.unixFileTest:var:172" version="1" datatype="string" comment="path"> |
| 240 | <value>/tmp/scapVal/File-Test-Level2/Level3-Folder040</value> |
| 241 | <value>/tmp/scapVal/File-Test-Level2/Level3-Folder040/this_is_a_symlink/Level3-SymLinked-Folder010</value> |
| 242 | </constant_variable> |
| 243 | <constant_variable id="oval:nist.validation.unixFileTest:var:182" version="1" datatype="string" comment="path"> |
| 244 | <value>/tmp/scapVal-Sym/File-Test-Level2-SymLinked/Level3-SymLinked-Folder010/Level4-Folder/Level4-File.txt</value> |
| 245 | <value>/tmp/scapVal-Sym/File-Test-Level2-SymLinked/Level3-SymLinked-Folder010/Level3-File.txt</value> |
| 246 | </constant_variable> |
| 247 | <constant_variable id="oval:nist.validation.unixFileTest:var:174" version="1" datatype="string" comment="path"> |
| 248 | <value>this_is_a_symlink</value> |
| 249 | <value>File-Test-Sym-Level2.txt</value> |
| 250 | </constant_variable> |
| 251 | <constant_variable id="oval:nist.validation.unixFileTest:var:175" version="1" datatype="string" comment="path"> |
| 252 | <value>this_is_a_symlink</value> |
| 253 | <value>File-Test-Sym-Level2.txt</value> |
| 254 | </constant_variable> |
| 255 | </variables> |
| 256 | |
| 257 | </oval_definitions> |