mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-25 14:43:06 +00:00
added blacklist requirement
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
910d1599a2
commit
a2d074a343
1 changed files with 17 additions and 0 deletions
|
|
@ -10,11 +10,20 @@
|
||||||
create: true
|
create: true
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
||||||
|
- name: "1.1.1.1 | PATCH | Ensure mounting of squashfs filesystems is disabled | blacklist"
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/modprobe.d/blacklist.conf
|
||||||
|
regexp: "^(#)?blacklist squashfs(\\s|$)"
|
||||||
|
line: "blacklist squashfs"
|
||||||
|
create: true
|
||||||
|
mode: 0600
|
||||||
|
|
||||||
- name: "1.1.1.1 | PATCH | Ensure mounting of squashfs filesystems is disabled | Disable squashfs"
|
- name: "1.1.1.1 | PATCH | Ensure mounting of squashfs filesystems is disabled | Disable squashfs"
|
||||||
modprobe:
|
modprobe:
|
||||||
name: squashfs
|
name: squashfs
|
||||||
state: absent
|
state: absent
|
||||||
when: not system_is_container
|
when: not system_is_container
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_1_1_1_1
|
- rhel9cis_rule_1_1_1_1
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -34,6 +43,14 @@
|
||||||
create: true
|
create: true
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
||||||
|
- name: "1.1.1.2 | PATCH | Ensure mounting of udf filesystems is disabled | blacklist"
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/modprobe.d/blacklist.conf
|
||||||
|
regexp: "^(#)?blacklist udf(\\s|$)"
|
||||||
|
line: "blacklist udf"
|
||||||
|
create: true
|
||||||
|
mode: 0600
|
||||||
|
|
||||||
- name: "1.1.1.2 | PATCH | Ensure mounting of udf filesystems is disable | Disable udf"
|
- name: "1.1.1.2 | PATCH | Ensure mounting of udf filesystems is disable | Disable udf"
|
||||||
modprobe:
|
modprobe:
|
||||||
name: udf
|
name: udf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue