Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oct 24 issues #43

Merged
merged 5 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions section_1/cis_1.8/cis_1.8.2.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

{{ if .Vars.rhel9cis_gui }}
{{ if .Vars.rhel9cis_rule_1_8_2 }}
command:
Expand All @@ -7,9 +9,8 @@ command:
exit-status: 0
stdout:
- '/^user-db:user/'
- '/^system-db:user/'
- '/^system-db:gdm/'
- '/^file-db:\/usr\/share\/gdm\/greeter-dconf-defaults/'
- "/^banner-message-text=\'{{ .Vars.rhel9cis_warning_banner }}\'/"
meta:
server: 1
workstation: 1
Expand All @@ -28,9 +29,9 @@ command:
- 0
- 1
stdout:
- '/^banner-message-enable=true/'
- '!/^banner-message-enable=false/'
- "/^banner-message-text=\'{{ .Vars.rhel9cis_warning_banner }}\'/"
- '/.*:banner-message-enable=true/'
- '!/.*:banner-message-enable=false/'
- '/.*:banner-message-text=.{{ .Vars.rhel9cis_warning_banner }}./'
meta:
server: 1
workstation: 1
Expand Down
2 changes: 1 addition & 1 deletion section_1/cis_1.8/cis_1.8.4.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if .Vars.rhel9cis_gui }}
{{ if .Vars.rhel9cis_rule_1_8_4 }}
file:
/etc/dconf/db/{ .Vars.rhel9cis_dconf_db_name }.d/00-screensaver:
/etc/dconf/db/{{ .Vars.rhel9cis_dconf_db_name }}.d/00-screensaver:
title: 1.8.4 | Ensure GDM screen locks when the user is idle
exists: true
contents:
Expand Down
2 changes: 1 addition & 1 deletion section_1/cis_1.8/cis_1.8.5.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if .Vars.rhel9cis_gui }}
{{ if .Vars.rhel9cis_rule_1_8_5 }}
file:
/etc/dconf/db/{ .Vars.rhel9cis_dconf_db_name }.d/locks/00-screensaver_lock:
/etc/dconf/db/{{ .Vars.rhel9cis_dconf_db_name }}.d/locks/00-screensaver_lock:
title: 1.8.5 | Ensure GDM screen locks cannot be overridden
exists: true
contents:
Expand Down
2 changes: 1 addition & 1 deletion section_1/cis_1.8/cis_1.8.6.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if .Vars.rhel9cis_gui }}
{{ if .Vars.rhel9cis_rule_1_8_6 }}
file:
/etc/dconf/db/{ .Vars.rhel9cis_dconf_db_name }.d/00-media-automount:
/etc/dconf/db/{{ .Vars.rhel9cis_dconf_db_name }}.d/00-media-automount:
title: 1.8.6 | Ensure GDM automatic mounting of removable media is disabled
exists: true
contents:
Expand Down
2 changes: 1 addition & 1 deletion section_1/cis_1.8/cis_1.8.7.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if .Vars.rhel9cis_gui }}
{{ if .Vars.rhel9cis_rule_1_8_7 }}
file:
/etc/dconf/db/{ .Vars.rhel9cis_dconf_db_name }.d/locks/00-automount_lock:
/etc/dconf/db/{{ .Vars.rhel9cis_dconf_db_name }}.d/locks/00-automount_lock:
title: 1.8.7 | Ensure GDM disabling automatic mounting of removable media is not overridden
exists: true
contents:
Expand Down
2 changes: 1 addition & 1 deletion section_1/cis_1.8/cis_1.8.8.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if .Vars.rhel9cis_gui }}
{{ if .Vars.rhel9cis_rule_1_8_8 }}
file:
/etc/dconf/db/{ .Vars.rhel9cis_dconf_db_name }.d/00-media-autorun:
/etc/dconf/db/{{ .Vars.rhel9cis_dconf_db_name }}.d/00-media-autorun:
title: 1.8.8 | Ensure GDM autorun-never is enabled
exists: true
contents:
Expand Down
2 changes: 1 addition & 1 deletion section_1/cis_1.8/cis_1.8.9.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if .Vars.rhel9cis_gui }}
{{ if .Vars.rhel9cis_rule_1_8_9 }}
file:
/etc/dconf/db/{ .Vars.rhel9cis_dconf_db_name }.d/locks/00-autorun_lock:
/etc/dconf/db/{{ .Vars.rhel9cis_dconf_db_name }}.d/locks/00-autorun_lock:
title: 1.8.9 | Ensure GDM autorun-never is not overridden
exists: true
contents:
Expand Down
8 changes: 4 additions & 4 deletions section_2/cis_2.2/cis_2.2.18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
{{ if not .Vars.rhel9cis_use_rsync_service }}
package:
rsync:
title: 2.2.19 Ensure rsync is not installed or the rsyncd service is masked
title: 2.2.18 Ensure rsync is not installed or the rsyncd service is masked
installed: false
meta:
server: 1
workstation: 1
CIS_ID:
- 2.2.19
- 2.2.18
CISv8:
- 4.8
CISv8_IG1: false
Expand All @@ -20,7 +20,7 @@ package:
{{ if .Vars.rhel9cis_use_rsync_service }}
command:
rsyncd masked:
title: 2.2.19 Ensure rsync is not installed or the rsyncd service is masked
title: 2.2.18 Ensure rsync is not installed or the rsyncd service is masked
exit-status: 1
exec: systemctl is-enabled rsyncd
stdout:
Expand All @@ -29,7 +29,7 @@ command:
server: 1
workstation: 1
CIS_ID:
- 2.2.19
- 2.2.18
CISv8:
- 4.8
CISv8_IG1: false
Expand Down
2 changes: 0 additions & 2 deletions vars/CIS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ rhel9cis_rule_2_2_15: true
rhel9cis_rule_2_2_16: true
rhel9cis_rule_2_2_17: true
rhel9cis_rule_2_2_18: true
rhel9cis_rule_2_2_19: true
rhel9cis_rule_2_2_20: true
# 2.3 service clients
rhel9cis_rule_2_3_1: true
rhel9cis_rule_2_3_2: true
Expand Down