forked from ansible-lockdown/RHEL9-CIS
Merge pull request #14 from alewando/umask_fix
Fix UMASK hardening workflow failure expected until RH9 GA
This commit is contained in:
commit
d5cce24f00
1 changed files with 2 additions and 2 deletions
|
|
@ -91,13 +91,13 @@
|
||||||
replace:
|
replace:
|
||||||
path: /etc/bashrc
|
path: /etc/bashrc
|
||||||
regexp: '^(?i)(\s+UMASK|UMASK)\s0[0-2][0-6]'
|
regexp: '^(?i)(\s+UMASK|UMASK)\s0[0-2][0-6]'
|
||||||
replace: 'UMASK 027'
|
replace: '\1 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: '^(?i)(\s+UMASK|UMASK)\s0[0-2][0-6]'
|
regexp: '^(?i)(\s+UMASK|UMASK)\s0[0-2][0-6]'
|
||||||
replace: 'UMASK 027'
|
replace: '\1 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