Skip to content

Commit e0f8a3e

Browse files
authored
Merge pull request #427 from ansible-lockdown/6_2_10
updated of 6.2.10 inline with control
2 parents 8124741 + a48ca0e commit e0f8a3e

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

tasks/section_6/cis_6.2.x.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -345,24 +345,10 @@
345345
loop_control:
346346
label: "{{ item.id }}"
347347

348-
# set default ACLs so the homedir has an effective umask of 0027
349-
- name: "6.2.10 | PATCH | Ensure local interactive user home directories exist | Set group ACL"
350-
ansible.posix.acl:
351-
path: "{{ item }}"
352-
default: true
353-
etype: group
354-
permissions: rx
355-
state: present
356-
loop: "{{ discovered_interactive_users_home.stdout_lines }}"
357-
when: not system_is_container
358-
359-
- name: "6.2.10 | PATCH | Ensure local interactive user home directories exist | Set other ACL"
360-
ansible.posix.acl:
348+
- name: "6.2.10 | PATCH | Ensure local interactive user home directories exist | Permissions"
349+
ansible.builtin.file:
361350
path: "{{ item }}"
362-
default: true
363-
etype: other
364-
permissions: 0
365-
state: present
351+
mode: 'g-w,o-rwx'
366352
loop: "{{ discovered_interactive_users_home.stdout_lines }}"
367353
when: not system_is_container
368354

0 commit comments

Comments
 (0)