Skip to content

Commit

Permalink
Add rule ensure_gpgcheck_globally_activated to sle micro 5 stig profile
Browse files Browse the repository at this point in the history
  • Loading branch information
svet-se committed Aug 16, 2024
1 parent 1ddb991 commit 67ffe29
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
5 changes: 3 additions & 2 deletions controls/stig_slmicro5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ controls:
levels:
- high
title: The SLEM 5 tool zypper must have gpgcheck enabled.
rules: []
status: pending
rules:
- ensure_gpgcheck_globally_activated
status: automated

- id: SLEM-05-214020
levels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# platform = multi_platform_rhel,multi_platform_ol,multi_platform_fedora,multi_platform_rhv,multi_platform_sle
# platform = multi_platform_rhel,multi_platform_ol,multi_platform_fedora,multi_platform_rhv,multi_platform_sle,multi_platform_slmicro

{{{ bash_replace_or_append( pkg_manager_config_file , '^gpgcheck', '1') }}}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{{ oval_metadata("The gpgcheck option should be used to ensure that checking
of an RPM package's signature always occurs prior to its
installation.") }}}
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
<criteria operator="AND">
<criterion comment="check value of gpgcheck in {{{ pkg_manager_config_file }}}" test_ref="test_ensure_gpgcheck_globally_activated" />
<criterion comment="no value 0_off_no_false set in {{{ pkg_manager_config_file }}}" test_ref="test_ensure_gpgcheck_globally_no_deactivated" />
Expand All @@ -26,7 +26,7 @@
<ind:instance datatype="int" operation="equals">1</ind:instance>
</ind:textfilecontent54_object>

{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}

<ind:textfilecontent54_test check="all" check_existence="none_exist" comment="no value 0 set in {{{ pkg_manager_config_file }}}" id="test_ensure_gpgcheck_globally_no_deactivated" version="1">
<ind:object object_ref="object_test_ensure_gpgcheck_globally_no_deactivated" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
{{% if 'sle' in product %}}
{{% if 'sle' in product or 'slmicro' in product %}}
# packages = libselinux1
{{% else %}}
# packages = python3-libselinux
Expand Down
1 change: 0 additions & 1 deletion shared/references/cce-slmicro5-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ CCE-93703-7
CCE-93704-5
CCE-93709-4
CCE-93710-2
CCE-93712-8
CCE-93713-6
CCE-93714-4
CCE-93715-1
Expand Down

0 comments on commit 67ffe29

Please sign in to comment.