Skip to content

Commit

Permalink
Merge pull request #12507 from jan-cerny/change_platforms_3
Browse files Browse the repository at this point in the history
Change rule platforms - Part 3: Individual rules in the "services" group
  • Loading branch information
Mab879 authored Oct 17, 2024
2 parents 5f2899c + 26aa2c9 commit a11711d
Show file tree
Hide file tree
Showing 47 changed files with 43 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="avahi-daemon") }}}
platform: machine and package[avahi]
platform: system_with_kernel and package[avahi]

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="abrtd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="acpid") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="certmonger") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rationale: |-
severity: medium

platform: machine
platform: system_with_kernel

ocil_clause: |-
{{{ ocil_clause_service_disabled(service="cockpit") }}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="cpupower") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fixtext: '{{{ fixtext_service_disabled(kdump_service) }}}'

srg_requirement: '{{{ srg_requirement_service_disabled(kdump_service) }}}'

platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="mdmonitor") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="netconsole") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="ntpdate") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="oddjobd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="portreserve") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="psacct") }}}
platform: machine
platform: system_with_kernel

template:
name: service_enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="qpidd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="quota_nld") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="rdisc") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="rhnsd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="rhsmcertd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="saslauthd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="sysstat") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="dhcpd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="named") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="vsftpd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="httpd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="dovecot") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="slapd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="nfs-server") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="rpcsvcgssd") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="ypbind") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="ypserv") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ references:

{{{ complete_ocil_entry_socket_and_service_disabled("rexec") }}}

platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ references:

{{{ complete_ocil_entry_socket_and_service_disabled("rlogin") }}}

platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ references:

{{{ complete_ocil_entry_socket_and_service_disabled("rsh") }}}

platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rationale: |-
severity: medium

platform: machine
platform: system_with_kernel

identifiers:
cce@rhel8: CCE-83335-0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ references:

{{{ complete_ocil_entry_socket_and_service_disabled("telnet") }}}

platform: machine and package[telnet-server]
platform: system_with_kernel and package[telnet-server]

warnings:
- general: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="tftp") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="cups") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="squid") }}}
platform: machine and package[squid]
platform: system_with_kernel and package[squid]

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="zebra") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="smb") }}}
platform: machine
platform: system_with_kernel

template:
name: service_disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ocil_clause: |-
ocil: |-
{{{ ocil_service_disabled(service="snmpd") }}}
platform: machine and package[snmpd]
platform: system_with_kernel and package[snmpd]

template:
name: service_disabled
Expand Down
2 changes: 1 addition & 1 deletion linux_os/guide/services/sssd/service_sssd_enabled/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ identifiers:
cce@rhel9: CCE-86088-2
cce@rhel10: CCE-87447-9

platform: machine
platform: system_with_kernel

references:
cis-csc: 1,12,15,16,5
Expand Down
2 changes: 1 addition & 1 deletion linux_os/guide/services/sssd/sssd-ldap/group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ description: |-
SSSD can support many backends including LDAP. The <tt>sssd-ldap</tt> backend
allows SSSD to fetch identity information from an LDAP server.
platform: machine
platform: system_with_kernel
2 changes: 0 additions & 2 deletions linux_os/guide/services/sssd/sssd_enable_smartcards/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ rationale: |-
severity: medium

platform: machine # The check uses service_... extended definition, which doesnt support offline mode

identifiers:
cce@rhel8: CCE-80909-5
cce@rhel9: CCE-89155-6
Expand Down
Loading

0 comments on commit a11711d

Please sign in to comment.