Debian Codegraph @

tests/probes/fwupdsecattr/test_probes_fwupdsecattr_mock.xml

raw symbols SCIP
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>fwupdsecattr</oval:product_name>
6 <oval:product_version>1.0</oval:product_version>
7 <oval:schema_version>5.11.3</oval:schema_version>
8 <oval:timestamp>2020-02-13T00:00:00-00:00</oval:timestamp>
9 </generator>
10
11 <definitions>
12
13 <definition class="compliance" id="oval:0:def:1" version="1"> <!-- comment="true" -->
14 <metadata>
15 <title>Kernel Lockdown</title>
16 <description>Kernel lockdown is an important mechanism to limit what hardware actions userspace programs can perform.</description>
17 </metadata>
18 <criteria operator="AND">
19 <criterion comment="Kernel Lockdown" test_ref="oval:0:tst:1" />
20 <criterion comment="Invalid Status" test_ref="oval:0:tst:11" />
21 </criteria>
22 </definition>
23
24 <definition class="compliance" id="oval:0:def:2" version="1"> <!-- comment="unknown" -->
25 <metadata>
26 <title>Unknown</title>
27 <description></description>
28 </metadata>
29 <criteria operator="AND">
30 <criterion comment="Invalid" test_ref="oval:0:tst:2" />
31 </criteria>
32 </definition>
33
34 </definitions>
35
36 <tests>
37
38 <lin-def:fwupdsecattr_test check="at least one" id="oval:0:tst:1" version="1" comment="true">
39 <lin-def:object object_ref="oval:0:obj:1" />
40 <lin-def:state state_ref="oval:0:ste:1" />
41 </lin-def:fwupdsecattr_test>
42
43 <lin-def:fwupdsecattr_test check="at least one" id="oval:0:tst:11" version="1" comment="true">
44 <lin-def:object object_ref="oval:0:obj:11" />
45 <lin-def:state state_ref="oval:0:ste:11" />
46 </lin-def:fwupdsecattr_test>
47
48 <lin-def:fwupdsecattr_test check="at least one" id="oval:0:tst:2" version="1" comment="unknown">
49 <lin-def:object object_ref="oval:0:obj:2" />
50 <lin-def:state state_ref="oval:0:ste:2" />
51 </lin-def:fwupdsecattr_test>
52
53 </tests>
54
55 <objects>
56
57 <lin-def:fwupdsecattr_object id="oval:0:obj:1" version="1">
58 <lin-def:stream_id datatype="string">org.fwupd.hsi.Kernel.Lockdown</lin-def:stream_id>
59 </lin-def:fwupdsecattr_object>
60
61 <lin-def:fwupdsecattr_object id="oval:0:obj:11" version="1">
62 <lin-def:stream_id datatype="string">org.fwupd.hsi.Kernel.InvalidStatus</lin-def:stream_id>
63 </lin-def:fwupdsecattr_object>
64
65 <lin-def:fwupdsecattr_object id="oval:0:obj:2" version="1">
66 <lin-def:stream_id datatype="string">org.fwupd.hsi.Kernel.InvalidOrNonExisting</lin-def:stream_id>
67 </lin-def:fwupdsecattr_object>
68
69 </objects>
70
71 <states>
72
73 <lin-def:fwupdsecattr_state id="oval:0:ste:1" version="1">
74 <lin-def:security_attr datatype="string" operation="pattern match">not-enabled</lin-def:security_attr>
75 </lin-def:fwupdsecattr_state>
76
77 <lin-def:fwupdsecattr_state id="oval:0:ste:11" version="1">
78 <lin-def:security_attr datatype="string" operation="pattern match">invalid-hsi-result</lin-def:security_attr>
79 </lin-def:fwupdsecattr_state>
80
81 <lin-def:fwupdsecattr_state id="oval:0:ste:2" version="1">
82 <lin-def:security_attr datatype="string" operation="pattern match">not-found</lin-def:security_attr>
83 </lin-def:fwupdsecattr_state>
84
85 </states>
86
87 </oval_definitions>