2022-01-07 09:06:18 +00:00
|
|
|
---
|
|
|
|
|
|
2022-03-30 11:08:18 +01:00
|
|
|
- name: "1.5.1 | PATCH | Ensure core dump storage is disabled"
|
|
|
|
|
lineinfile:
|
|
|
|
|
path: /etc/systemd/coredump.conf
|
|
|
|
|
regexp: 'Storage='
|
|
|
|
|
line: 'Storage=none'
|
|
|
|
|
notify: systemd_daemon_reload
|
2022-01-07 09:06:18 +00:00
|
|
|
when:
|
2022-03-30 11:08:18 +01:00
|
|
|
- rhel8cis_rule_1_5_1
|
|
|
|
|
- systemd_coredump.stat.exists
|
2022-01-07 09:06:18 +00:00
|
|
|
tags:
|
|
|
|
|
- level1-server
|
|
|
|
|
- level1-workstation
|
2022-03-30 11:08:18 +01:00
|
|
|
- automated
|
2022-01-07 09:06:18 +00:00
|
|
|
- patch
|
|
|
|
|
- rule_1.5.1
|
|
|
|
|
|
2022-03-30 11:08:18 +01:00
|
|
|
- name: "1.5.2 | PATCH | Ensure core dump backtraces are disabled"
|
|
|
|
|
lineinfile:
|
|
|
|
|
path: /etc/systemd/coredump.conf
|
|
|
|
|
regexp: 'ProcessSizeMax='
|
|
|
|
|
line: 'ProcessSizeMax=0'
|
2022-01-07 09:06:18 +00:00
|
|
|
when:
|
2022-03-30 11:08:18 +01:00
|
|
|
- rhel8cis_rule_1_5_2
|
2022-01-07 09:06:18 +00:00
|
|
|
tags:
|
|
|
|
|
- level1-server
|
|
|
|
|
- level1-workstation
|
2022-03-30 11:08:18 +01:00
|
|
|
- automated
|
2022-01-07 09:06:18 +00:00
|
|
|
- patch
|
2022-03-30 11:08:18 +01:00
|
|
|
- sysctl
|
2022-01-07 09:06:18 +00:00
|
|
|
- rule_1.5.2
|
|
|
|
|
|
2022-03-30 11:08:18 +01:00
|
|
|
- name: "1.5.3 | PATCH | Ensure address space layout randomization (ASLR) is enabled"
|
|
|
|
|
sysctl:
|
|
|
|
|
name: kernel.randomize_va_space
|
|
|
|
|
value: '2'
|
|
|
|
|
state: present
|
|
|
|
|
reload: yes
|
|
|
|
|
sysctl_set: yes
|
|
|
|
|
ignoreerrors: yes
|
2022-01-07 09:06:18 +00:00
|
|
|
when:
|
2022-03-30 11:08:18 +01:00
|
|
|
- rhel8cis_rule_1_5_3
|
2022-01-07 09:06:18 +00:00
|
|
|
tags:
|
|
|
|
|
- level1-server
|
|
|
|
|
- level1-workstation
|
2022-03-30 11:08:18 +01:00
|
|
|
- automated
|
2022-01-07 09:06:18 +00:00
|
|
|
- patch
|
2022-03-30 11:08:18 +01:00
|
|
|
- sysctl
|
2022-01-07 09:06:18 +00:00
|
|
|
- rule_1.5.3
|