File: system_with_kernel.xml

package info (click to toggle)
scap-security-guide 0.1.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 114,600 kB
  • sloc: xml: 245,305; sh: 84,381; python: 33,093; makefile: 27
file content (25 lines) | stat: -rw-r--r-- 1,432 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
<def-group>
  <definition class="inventory" id="system_with_kernel" version="1">
    {{{ oval_metadata("The kernel is installed", affected_platforms=["multi_platform_all"], rule_title=rule_title) }}}
    <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 %}}
      {{% if 'sle' in product or 'slmicro' in product %}}
      <criterion comment="kernel-default-base is installed" test_ref="inventory_test_kernel_default_base_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") }}}
{{{ oval_test_package_installed(package="kernel-default-base", test_id="inventory_test_kernel_default_base_installed") }}}
{{% else %}}
{{{ oval_test_package_installed(package="kernel-core", 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>