Skip to content

Commit 013be19

Browse files
authored
Merge pull request #453 from ansible-lockdown/devel
New release to main
2 parents 65731c1 + 07348c0 commit 013be19

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ repos:
3535
- id: detect-secrets
3636

3737
- repo: https://github.com/gitleaks/gitleaks
38-
rev: v8.21.2
38+
rev: v8.23.3
3939
hooks:
4040
- id: gitleaks
4141

4242
- repo: https://github.com/ansible-community/ansible-lint
43-
rev: v24.10.0
43+
rev: v25.1.2
4444
hooks:
4545
- id: ansible-lint
4646
name: Ansible-lint

tasks/section_5/cis_5.1.1.x.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
- set_remote_syslog is failed
177177
- set_remote_syslog.rc != 257
178178

179-
- name: "5.1.1.7 | PATCH | Ensure rsyslog is not configured to recieve logs from a remote client"
179+
- name: "5.1.1.7 | PATCH | Ensure rsyslog is not configured to receive logs from a remote client"
180180
when:
181181
- rhel8cis_rule_5_1_1_7
182182
tags:
@@ -187,7 +187,7 @@
187187
- rule_5.1.1.7
188188
notify: Restart_rsyslog
189189
block:
190-
- name: "5.1.1.7 | PATCH | Ensure rsyslog is not configured to recieve logs from a remote client. | When not log host"
190+
- name: "5.1.1.7 | PATCH | Ensure rsyslog is not configured to receive logs from a remote client. | When not log host"
191191
when: not rhel8cis_system_is_log_server
192192
ansible.builtin.replace:
193193
path: /etc/rsyslog.conf
@@ -199,7 +199,7 @@
199199
- '^(module\(load="imtcp"\))'
200200
- '^(input\(type="imtcp")'
201201

202-
- name: "5.1.1.7 | PATCH | Ensure rsyslog is not configured to recieve logs from a remote clients. | When log host"
202+
- name: "5.1.1.7 | PATCH | Ensure rsyslog is not configured to receive logs from a remote clients. | When log host"
203203
when: rhel8cis_system_is_log_server
204204
ansible.builtin.replace:
205205
path: /etc/rsyslog.conf

tasks/section_5/cis_5.1.2.x.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
state: started
6464
enabled: true
6565

66-
- name: "5.1.2.1.4 | PATCH | Ensure journald is not configured to recieve logs from a remote client"
66+
- name: "5.1.2.1.4 | PATCH | Ensure journald is not configured to receive logs from a remote client"
6767
when:
6868
- not rhel8cis_system_is_log_server
6969
- rhel8cis_rule_5_1_2_1_4

tasks/section_6/cis_6.2.x.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302

303303
- name: "6.2.9 | PATCH | Ensure root is the only UID 0 account"
304304
when:
305-
- prelim_uid_zero_accounts_except_root.rc
305+
- prelim_uid_zero_accounts_except_root.stdout | length > 0
306306
- rhel8cis_rule_6_2_9
307307
tags:
308308
- level1-server
@@ -421,8 +421,8 @@
421421
- name: "6.2.11 | PATCH | Ensure local interactive user dot files access is configured | Changes files ownerships"
422422
ansible.builtin.file:
423423
path: "{{ item.path }}"
424-
owner: "{{ rhel8cis_passwd | selectattr('dir', 'in', item.path) | map(attribute='uid') | last }}"
425-
group: "{{ rhel8cis_passwd | selectattr('dir', 'in', item.path) | map(attribute='gid') | last }}"
424+
owner: "{{ rhel8cis_passwd | selectattr('dir', 'in', prelim_interactive_users_home.stdout_lines) | selectattr('dir', 'in', item.path) | map(attribute='uid') | last }}"
425+
group: "{{ rhel8cis_passwd | selectattr('dir', 'in', prelim_interactive_users_home.stdout_lines) | selectattr('dir', 'in', item.path) | map(attribute='gid') | last }}"
426426
with_items: "{{ discovered_hidden_files.files }}"
427427

428428
- name: "6.2.11 | PATCH | Ensure local interactive user dot files access is configured | rename .forward or .netrc files"

0 commit comments

Comments
 (0)