forked from ansible-lockdown/RHEL9-CIS
section 1 updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
bfbcede072
commit
39780562c1
9 changed files with 14 additions and 10 deletions
|
|
@ -3,7 +3,7 @@
|
|||
- name: "1.5.1 | PATCH | Ensure core dump storage is disabled"
|
||||
lineinfile:
|
||||
path: /etc/systemd/coredump.conf
|
||||
regexp: 'Storage='
|
||||
regexp: '^Storage\s*=\s*(?!none).*'
|
||||
line: 'Storage=none'
|
||||
notify: systemd_daemon_reload
|
||||
when:
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
- name: "1.5.2 | PATCH | Ensure core dump backtraces are disabled"
|
||||
lineinfile:
|
||||
path: /etc/systemd/coredump.conf
|
||||
regexp: 'ProcessSizeMax='
|
||||
regexp: '^ProcessSizeMax\s*=\s*.*[1-9]$'
|
||||
line: 'ProcessSizeMax=0'
|
||||
when:
|
||||
- rhel9cis_rule_1_5_2
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
- name: "1.5.3 | PATCH | Ensure address space layout randomization (ASLR) is enabled"
|
||||
debug:
|
||||
msg: "Control being set via Handler 'update sysctl' which writes to /etc/sysctl.d/99-sysctl.conf"
|
||||
msg: "Control being set via Handler 'update sysctl' which writes to /etc/sysctl.d/60-kernel_sysctl.conf"
|
||||
notify:
|
||||
- update sysctl
|
||||
when:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue