Skip to content

Commit

Permalink
Merge pull request ComplianceAsCode#11144 from Mab879/add_package_sma…
Browse files Browse the repository at this point in the history
…il_installed

Add rule `package_s-nail-installed`
  • Loading branch information
jan-cerny authored Sep 27, 2023
2 parents 68f7b0c + f1c04ed commit 6249ec5
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
5 changes: 5 additions & 0 deletions components/s-nail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: s-nail
packages:
- s-nail
rules:
- package_s-nail_installed
1 change: 1 addition & 0 deletions controls/srg_gpos/SRG-OS-000363-GPOS-00150.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ controls:
rules:
- aide_periodic_cron_checking
- package_aide_installed
- package_s-nail_installed
status: automated
33 changes: 33 additions & 0 deletions linux_os/guide/services/mail/package_s-nail_installed/rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
documentation_complete: true

prodtype: rhel9

title: 'The s-nail Package Is Installed'

description: |-
A mail server is required for sending emails.
{{{ describe_package_install(package="s-nail") }}}
rationale: |-
Emails can be used to notify designated personnel about important
system events such as failures or warnings.
severity: medium

identifiers:
cce@rhel9: CCE-86608-7

references:
disa: CCI-001744
nist: CM-3(5)
srg: SRG-OS-000363-GPOS-00150

ocil_clause: 'the package is not installed'

ocil: '{{{ ocil_package(package="s-nail") }}}'

template:
name: package_installed
vars:
pkgname: s-nail

1 change: 0 additions & 1 deletion shared/references/cce-redhat-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ CCE-86604-6
CCE-86605-3
CCE-86606-1
CCE-86607-9
CCE-86608-7
CCE-86609-5
CCE-86610-3
CCE-86613-7
Expand Down

0 comments on commit 6249ec5

Please sign in to comment.