File: template_OVAL_package_removed

package info (click to toggle)
scap-security-guide 0.1.39-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 31,836 kB
  • sloc: xml: 129,736; python: 7,462; sh: 3,796; makefile: 27
file content (35 lines) | stat: -rw-r--r-- 1,375 bytes parent folder | download
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
<def-group>
  <definition class="compliance" id="package_%PKGNAME%_removed"
  version="1">
    <metadata>
      <title>Package %PKGNAME% Removed</title>
      <affected family="unix">
        <platform>multi_platform_all</platform>
      </affected>
      <description>The {{{ pkg_system|upper }}} package %PKGNAME% should be removed.</description>
    </metadata>
    <criteria>
      <criterion comment="package %PKGNAME% is removed"
      test_ref="test_package_%PKGNAME%_removed" />
    </criteria>
  </definition>
{{% if pkg_system == "rpm" %}}
  <linux:rpminfo_test check="all" check_existence="none_exist"
  id="test_package_%PKGNAME%_removed" version="1"
  comment="package %PKGNAME% is removed">
    <linux:object object_ref="obj_package_%PKGNAME%_removed" />
  </linux:rpminfo_test>
  <linux:rpminfo_object id="obj_package_%PKGNAME%_removed" version="1">
    <linux:name>%PKGNAME%</linux:name>
  </linux:rpminfo_object>
{{% elif pkg_system == "dpkg" %}}
  <linux:dpkginfo_test check="all" check_existence="none_exist"
  id="test_package_%PKGNAME%_removed" version="1"
  comment="package %PKGNAME% is removed">
    <linux:object object_ref="obj_package_%PKGNAME%_removed" />
  </linux:dpkginfo_test>
  <linux:dpkginfo_object id="obj_package_%PKGNAME%_removed" version="1">
    <linux:name>%PKGNAME%</linux:name>
  </linux:dpkginfo_object>
{{% endif %}}
</def-group>