Skip to content

Commit

Permalink
Merge pull request #10292 from marcusburghardt/cis_disabling_cyrus-imapd
Browse files Browse the repository at this point in the history
Introduce rule to remove cyrus-imapd package
  • Loading branch information
Mab879 authored Mar 6, 2023
2 parents 7f094ff + 81c9ad7 commit a76957c
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
5 changes: 2 additions & 3 deletions controls/cis_rhel8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -774,16 +774,15 @@ controls:
- package_httpd_removed
- package_nginx_removed

# NEEDS RULE
- id: 2.2.11
title: Ensure IMAP and POP3 server is not installed (Automated)
levels:
- l1_server
- l1_workstation
status: partial
status: automated
rules:
- package_dovecot_removed
# Needs a rule to remove cyrus-imapd
- package_cyrus-imapd_removed

- id: 2.2.12
title: Ensure Samba is not installed (Automated)
Expand Down
5 changes: 2 additions & 3 deletions controls/cis_rhel9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -770,16 +770,15 @@ controls:
- package_httpd_removed
- package_nginx_removed

# NEEDS RULE
- id: 2.2.9
title: Ensure IMAP and POP3 server is not installed (Automated)
levels:
- l1_server
- l1_workstation
status: partial
status: automated
rules:
- package_dovecot_removed
# Needs a rule to remove cyrus-imapd
- package_cyrus-imapd_removed

- id: 2.2.10
title: Ensure Samba is not installed (Automated)
Expand Down
7 changes: 7 additions & 0 deletions linux_os/guide/services/imap/disabling_cyrus-imapd/group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
documentation_complete: true

title: 'Disable Cyrus IMAP'

description: |-
If the system does not need to operate as an IMAP or
POP3 server, the Cyrus IMAP software should be removed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
documentation_complete: true

prodtype: rhel8,rhel9

title: 'Uninstall cyrus-imapd Package'

description: |-
{{{ describe_package_remove(package="cyrus-imapd") }}}
rationale: |-
If there is no need to make the cyrus-imapd software available,
removing it provides a safeguard against its activation.
severity: unknown

identifiers:
cce@rhel8: CCE-88119-3
cce@rhel9: CCE-88120-1

references:
cis@rhel8: 2.2.11
cis@rhel9: 2.2.9

{{{ complete_ocil_entry_package(package="cyrus-imapd") }}}

template:
name: package_removed
vars:
pkgname: cyrus-imapd
2 changes: 0 additions & 2 deletions shared/references/cce-redhat-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1659,8 +1659,6 @@ CCE-88115-1
CCE-88116-9
CCE-88117-7
CCE-88118-5
CCE-88119-3
CCE-88120-1
CCE-88124-3
CCE-88125-0
CCE-88126-8
Expand Down

0 comments on commit a76957c

Please sign in to comment.