mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-26 15:13:05 +00:00
changed logic
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
21bd88bdac
commit
783c45d622
1 changed files with 4 additions and 4 deletions
|
|
@ -90,14 +90,14 @@
|
||||||
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Set umask for /etc/bashrc"
|
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Set umask for /etc/bashrc"
|
||||||
replace:
|
replace:
|
||||||
path: /etc/bashrc
|
path: /etc/bashrc
|
||||||
regexp: '(^\s+umask) 0[012][0-6]'
|
regexp: '^(\s+UMASK|UMASK)\s0[0-2][0-6]'
|
||||||
replace: '\1 027'
|
replace: 'UMASK 027'
|
||||||
|
|
||||||
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Set umask for /etc/profile"
|
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Set umask for /etc/profile"
|
||||||
replace:
|
replace:
|
||||||
path: /etc/profile
|
path: /etc/profile
|
||||||
regexp: '(^\s+umask) 0[012][0-6]'
|
regexp: '^(\s+UMASK|UMASK)\s0[0-2][0-6]'
|
||||||
replace: '\1 027'
|
replace: 'UMASK 027'
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_5_6_5
|
- rhel9cis_rule_5_6_5
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue