Skip to content

Commit

Permalink
Merge pull request #12652 from jan-cerny/file_permissions_crontabs
Browse files Browse the repository at this point in the history
Improve rule file_permssions_crontab
  • Loading branch information
Mab879 authored Dec 10, 2024
2 parents dddbdd5 + d06fa13 commit b3b1560
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions controls/cis_rhel10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ controls:
- l1_workstation
status: automated
rules:
- package_cron_installed
- service_crond_enabled

- id: 2.4.1.2
Expand Down
1 change: 1 addition & 0 deletions controls/cis_rhel9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,7 @@ controls:
- l1_workstation
status: automated
rules:
- package_cron_installed
- service_crond_enabled

- id: 2.4.1.2
Expand Down
1 change: 1 addition & 0 deletions controls/srg_gpos/SRG-OS-000480-GPOS-00227.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ controls:
- package_nss-tools_installed
- package_policycoreutils-python-utils_installed
- package_policycoreutils_installed
- package_cron_installed

# mount options
- mount_option_nodev_remote_filesystems
Expand Down
1 change: 1 addition & 0 deletions controls/stig_rhel9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ controls:
- medium
title: RHEL 9 cron configuration directories must have a mode of 0700 or less permissive.
rules:
- package_cron_installed
- file_permissions_cron_d
- file_permissions_cron_daily
- file_permissions_cron_hourly
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{% if product in ["rhel10", "sle12", "sle15"] %}}
{{% if product in ["rhel9", "rhel10", "sle12", "sle15"] %}}
{{% set package_name = "cronie" %}}
{{% else %}}
{{% set package_name = "cron" %}}
Expand All @@ -15,6 +15,7 @@ rationale: 'The cron service allow periodic job execution, needed for almost all
severity: medium

identifiers:
cce@rhel9: CCE-86170-8
cce@rhel10: CCE-86619-4
cce@sle12: CCE-92263-3
cce@sle15: CCE-91379-8
Expand All @@ -26,12 +27,14 @@ references:
cis@ubuntu2004: 5.1.1
cis@ubuntu2204: 5.1.1
cobit5: BAI10.01,BAI10.02,BAI10.03,BAI10.05,DSS05.02,DSS05.05,DSS06.06
disa: CCI-000366
hipaa: 164.308(a)(4)(i),164.308(b)(1),164.308(b)(3),164.310(b),164.312(e)(1),164.312(e)(2)(ii)
isa-62443-2009: 4.3.3.5.1,4.3.3.5.2,4.3.3.5.3,4.3.3.5.4,4.3.3.5.5,4.3.3.5.6,4.3.3.5.7,4.3.3.5.8,4.3.3.6.1,4.3.3.6.2,4.3.3.6.3,4.3.3.6.4,4.3.3.6.5,4.3.3.6.6,4.3.3.6.7,4.3.3.6.8,4.3.3.6.9,4.3.3.7.1,4.3.3.7.2,4.3.3.7.3,4.3.3.7.4,4.3.4.3.2,4.3.4.3.3
isa-62443-2013: 'SR 1.1,SR 1.10,SR 1.11,SR 1.12,SR 1.13,SR 1.2,SR 1.3,SR 1.4,SR 1.5,SR 1.6,SR 1.7,SR 1.8,SR 1.9,SR 2.1,SR 2.2,SR 2.3,SR 2.4,SR 2.5,SR 2.6,SR 2.7,SR 7.6'
iso27001-2013: A.12.1.2,A.12.5.1,A.12.6.2,A.14.2.2,A.14.2.3,A.14.2.4,A.9.1.2
nist: CM-6(a)
nist-csf: PR.IP-1,PR.PT-3
srg: SRG-OS-000480-GPOS-00227

ocil_clause: 'the package is installed'

Expand All @@ -42,6 +45,7 @@ template:
name: package_installed
vars:
pkgname: cron
pkgname@rhel9: cronie
pkgname@rhel10: cronie
pkgname@sle12: cronie
pkgname@sle15: cronie
1 change: 1 addition & 0 deletions products/rhel9/profiles/hipaa.profile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ selections:
- package_talk-server_removed
- package_telnet_removed
- package_telnet-server_removed
- package_cron_installed
- service_crond_enabled
- service_telnet_disabled
- use_kerberos_security_all_exports
Expand Down
1 change: 0 additions & 1 deletion shared/references/cce-redhat-avail.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CCE-86170-8
CCE-86178-1
CCE-86179-9
CCE-86180-7
Expand Down
1 change: 1 addition & 0 deletions tests/data/profile_stability/rhel9/cis.profile
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ selections:
- package_audit_installed
- package_bind_removed
- package_chrony_installed
- package_cron_installed
- package_cyrus-imapd_removed
- package_dhcp_removed
- package_dnsmasq_removed
Expand Down
1 change: 1 addition & 0 deletions tests/data/profile_stability/rhel9/cis_server_l1.profile
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ selections:
- package_aide_installed
- package_bind_removed
- package_chrony_installed
- package_cron_installed
- package_cyrus-imapd_removed
- package_dhcp_removed
- package_dnsmasq_removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ selections:
- package_aide_installed
- package_bind_removed
- package_chrony_installed
- package_cron_installed
- package_cyrus-imapd_removed
- package_dhcp_removed
- package_dnsmasq_removed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ selections:
- package_audit_installed
- package_bind_removed
- package_chrony_installed
- package_cron_installed
- package_cyrus-imapd_removed
- package_dhcp_removed
- package_dnsmasq_removed
Expand Down
1 change: 1 addition & 0 deletions tests/data/profile_stability/rhel9/stig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ selections:
- package_audispd-plugins_installed
- package_audit_installed
- package_chrony_installed
- package_cron_installed
- package_crypto-policies_installed
- package_fapolicyd_installed
- package_firewalld_installed
Expand Down
1 change: 1 addition & 0 deletions tests/data/profile_stability/rhel9/stig_gui.profile
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ selections:
- package_audispd-plugins_installed
- package_audit_installed
- package_chrony_installed
- package_cron_installed
- package_crypto-policies_installed
- package_fapolicyd_installed
- package_firewalld_installed
Expand Down

0 comments on commit b3b1560

Please sign in to comment.