4
0
Fork 0

changed logic

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-04-05 16:56:27 +01:00
parent 21bd88bdac
commit 783c45d622
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB

View file

@ -90,14 +90,14 @@
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Set umask for /etc/bashrc"
replace:
path: /etc/bashrc
regexp: '(^\s+umask) 0[012][0-6]'
replace: '\1 027'
regexp: '^(\s+UMASK|UMASK)\s0[0-2][0-6]'
replace: 'UMASK 027'
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Set umask for /etc/profile"
replace:
path: /etc/profile
regexp: '(^\s+umask) 0[012][0-6]'
replace: '\1 027'
regexp: '^(\s+UMASK|UMASK)\s0[0-2][0-6]'
replace: 'UMASK 027'
when:
- rhel9cis_rule_5_6_5
tags: