File: system_with_kernel.xml

package info (click to toggle)
scap-security-guide 0.1.76-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 110,644 kB
  • sloc: xml: 241,883; sh: 73,777; python: 32,527; makefile: 27
file content (21 lines) | stat: -rw-r--r-- 1,084 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
<def-group>
  <definition class="inventory" id="system_with_kernel" version="1">
    {{{ oval_metadata("The kernel is installed", affected_platforms=["multi_platform_all"]) }}}
    <criteria operator="OR">
      <criterion comment="kernel is installed" test_ref="inventory_test_kernel_installed" />
      {{% if "ol" in families %}}
      <criterion comment="kernel-uek is installed" test_ref="inventory_test_kernel_uek_installed" />
      {{% endif %}}
    </criteria>
  </definition>
{{% if 'debian' in product or 'ubuntu' in product %}}
{{{ oval_test_package_installed(package="linux-base", test_id="inventory_test_kernel_installed") }}}
{{% elif 'sle' in product or 'slmicro' in product %}}
{{{ oval_test_package_installed(package="kernel-default", test_id="inventory_test_kernel_installed") }}}
{{% else %}}
{{{ oval_test_package_installed(package="kernel", test_id="inventory_test_kernel_installed") }}}
{{% endif %}}
{{% if "ol" in families %}}
{{{ oval_test_package_installed(package="kernel-uek", test_id="inventory_test_kernel_uek_installed") }}}
{{% endif %}}
</def-group>