File: package_example.xml

package info (click to toggle)
oval-interpreter 5.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 38,616 kB
  • ctags: 2,913
  • sloc: cpp: 34,874; makefile: 846; xml: 361; sh: 21; perl: 17
file content (69 lines) | stat: -rw-r--r-- 5,072 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version='1.0' encoding='UTF-8'?>
<oval_definitions xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5' xmlns:unix-def='http://oval.mitre.org/XMLSchema/oval-definitions-5#unix' xmlns:ind-def ='http://oval.mitre.org/XMLSchema/oval-definitions-5#independent' xmlns:oval='http://oval.mitre.org/XMLSchema/oval-common-5' xmlns:oval-def='http://oval.mitre.org/XMLSchema/oval-definitions-5' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://oval.mitre.org/XMLSchema/oval-definitions-5#independent /usr/share/ovaldi/xml/independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux /usr/share/ovaldi/xml/linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix /usr/share/ovaldi/xml/unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 /usr/share/ovaldi/xml/oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 /usr/share/ovaldi/xml/oval-common-schema.xsd' xmlns:linux-def='http://oval.mitre.org/XMLSchema/oval-definitions-5#linux'>
  <generator>
    <oval:product_name>Debian</oval:product_name>
    <oval:schema_version>5.3</oval:schema_version>
    <oval:timestamp>2007-08-08T22:23:18.188-04:00</oval:timestamp>
  </generator>
  <definitions>
    <definition version='1' id='oval:org.debian:def:1325' class='vulnerability'>
      <metadata>
        <title>Grub package installed on i386 or amd64 architecture</title>
        <affected family='unix'>
          <platform>Debian GNU/Linux 4.0</platform>
          <product>grub</product>
        </affected>
        <description>Check if grub package installed on Debian 4.0 (etch) on i386 or amd64 arch</description>
      </metadata>
      <criteria comment='Release section' operator='AND'>
        <criterion comment='Debian 4.0 is installed' test_ref='oval:org.debian.oval:tst:1'/>
        <criteria comment='Architecture depended section' operator='AND'>
          <criteria comment='Supported architectures section' operator='OR'>
            <criterion comment='amd64 architecture' test_ref='oval:org.debian.oval:tst:2'/>
            <criterion comment='i386 architecture' test_ref='oval:org.debian.oval:tst:3'/>
          </criteria>
          <criterion comment='grub DPKG is installed' test_ref='oval:org.debian.oval:tst:4'/>
        </criteria>
      </criteria>
    </definition>
  </definitions>
  <tests>
    <textfilecontent_test comment='Debian GNU/Linux 4.0 is installed' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#independent' id='oval:org.debian.oval:tst:1' version='1' check='all' check_existence='at_least_one_exists'>
      <object object_ref='oval:org.debian.oval:obj:1'/>
      <state state_ref='oval:org.debian.oval:ste:1'/>
    </textfilecontent_test>
    <uname_test comment='Installed architecture is amd64' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#unix' id='oval:org.debian.oval:tst:2' version='1' check='all' check_existence='at_least_one_exists'>
      <object object_ref='oval:org.debian.oval:obj:2'/>
      <state state_ref='oval:org.debian.oval:ste:2'/>
    </uname_test>
    <uname_test comment='Installed architecture is i386' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#unix' id='oval:org.debian.oval:tst:3' version='1' check='all' check_existence='at_least_one_exists'>
      <object object_ref='oval:org.debian.oval:obj:2'/>
      <state state_ref='oval:org.debian.oval:ste:3'/>
    </uname_test>
    <dpkginfo_test comment='grub package installed' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#linux' id='oval:org.debian.oval:tst:4' version='1' check='all' check_existence='at_least_one_exists'>
      <object object_ref='oval:org.debian.oval:obj:3'/>
    </dpkginfo_test>
  </tests>
  <objects>
    <textfilecontent_object version='1' id='oval:org.debian.oval:obj:1' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#independent'>
      <path>/etc</path>
      <filename>debian_version</filename>
      <line operation='pattern match'>\d\.\d</line>
    </textfilecontent_object>
    <uname_object version='1' id='oval:org.debian.oval:obj:2' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#unix'/>
    <dpkginfo_object version='1' id='oval:org.debian.oval:obj:3' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#linux'>
      <name>grub</name>
    </dpkginfo_object>
  </objects>
  <states>
    <textfilecontent_state version='1' id='oval:org.debian.oval:ste:1' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#independent'>
      <line operation='equals'>4.0</line>
    </textfilecontent_state>
    <uname_state version='1' id='oval:org.debian.oval:ste:2' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#unix'>
      <processor_type operation='equals'>x86-64</processor_type>
    </uname_state>
    <uname_state version='1' id='oval:org.debian.oval:ste:3' xmlns='http://oval.mitre.org/XMLSchema/oval-definitions-5#unix'>
      <processor_type operation='equals'>i686</processor_type>
    </uname_state>
  </states>
</oval_definitions>