2022-01-07 09:06:18 +00:00
|
|
|
---
|
|
|
|
|
|
2023-01-09 16:29:47 +00:00
|
|
|
- name: "1.1.1.1 | PATCH | Ensure mounting of squashfs filesystems is disabled"
|
2022-01-07 09:06:18 +00:00
|
|
|
block:
|
2023-01-09 16:29:47 +00:00
|
|
|
- name: "1.1.1.1 | PATCH | Ensure mounting of squashfs filesystems is disabled | Edit modprobe config"
|
|
|
|
|
ansible.builtin.lineinfile:
|
2022-04-06 16:58:03 +01:00
|
|
|
path: /etc/modprobe.d/CIS.conf
|
2022-01-07 09:06:18 +00:00
|
|
|
regexp: "^(#)?install squashfs(\\s|$)"
|
|
|
|
|
line: "install squashfs /bin/true"
|
2022-09-16 11:10:31 +01:00
|
|
|
create: true
|
2022-01-07 09:06:18 +00:00
|
|
|
mode: 0600
|
|
|
|
|
|
2023-01-17 11:34:01 +00:00
|
|
|
- name: "1.1.1.1 | PATCH | Ensure mounting of squashfs filesystems is disabled | blacklist"
|
2023-01-19 13:12:33 +00:00
|
|
|
ansible.builtin.lineinfile:
|
2023-01-17 11:34:01 +00:00
|
|
|
path: /etc/modprobe.d/blacklist.conf
|
|
|
|
|
regexp: "^(#)?blacklist squashfs(\\s|$)"
|
|
|
|
|
line: "blacklist squashfs"
|
|
|
|
|
create: true
|
|
|
|
|
mode: 0600
|
|
|
|
|
|
2023-01-09 16:29:47 +00:00
|
|
|
- name: "1.1.1.1 | PATCH | Ensure mounting of squashfs filesystems is disabled | Disable squashfs"
|
2023-01-19 13:12:33 +00:00
|
|
|
community.general.modprobe:
|
2022-01-07 09:06:18 +00:00
|
|
|
name: squashfs
|
|
|
|
|
state: absent
|
2022-06-20 17:03:45 +01:00
|
|
|
when: not system_is_container
|
2023-01-17 11:34:01 +00:00
|
|
|
|
2022-01-07 09:06:18 +00:00
|
|
|
when:
|
2023-01-09 16:29:47 +00:00
|
|
|
- rhel9cis_rule_1_1_1_1
|
2022-01-07 09:06:18 +00:00
|
|
|
tags:
|
2022-03-30 11:08:18 +01:00
|
|
|
- level2-server
|
|
|
|
|
- level2-workstation
|
2022-01-07 09:06:18 +00:00
|
|
|
- patch
|
2023-01-09 16:29:47 +00:00
|
|
|
- rule_1.1.1.1
|
2022-01-07 09:06:18 +00:00
|
|
|
- squashfs
|
|
|
|
|
|
2023-01-09 16:29:47 +00:00
|
|
|
- name: "1.1.1.2 | PATCH | Ensure mounting of udf filesystems is disabled"
|
2022-01-07 09:06:18 +00:00
|
|
|
block:
|
2023-01-09 16:29:47 +00:00
|
|
|
- name: "1.1.1.2 | PATCH | Ensure mounting of udf filesystems is disable | Edit modprobe config"
|
|
|
|
|
ansible.builtin.lineinfile:
|
2022-04-06 16:58:03 +01:00
|
|
|
path: /etc/modprobe.d/CIS.conf
|
2022-01-07 09:06:18 +00:00
|
|
|
regexp: "^(#)?install udf(\\s|$)"
|
|
|
|
|
line: "install udf /bin/true"
|
2022-09-16 11:10:31 +01:00
|
|
|
create: true
|
2022-01-07 09:06:18 +00:00
|
|
|
mode: 0600
|
|
|
|
|
|
2023-01-17 11:34:01 +00:00
|
|
|
- name: "1.1.1.2 | PATCH | Ensure mounting of udf filesystems is disabled | blacklist"
|
2023-01-19 13:12:33 +00:00
|
|
|
ansible.builtin.lineinfile:
|
2023-01-17 11:34:01 +00:00
|
|
|
path: /etc/modprobe.d/blacklist.conf
|
|
|
|
|
regexp: "^(#)?blacklist udf(\\s|$)"
|
|
|
|
|
line: "blacklist udf"
|
|
|
|
|
create: true
|
|
|
|
|
mode: 0600
|
|
|
|
|
|
2023-01-09 16:29:47 +00:00
|
|
|
- name: "1.1.1.2 | PATCH | Ensure mounting of udf filesystems is disable | Disable udf"
|
2023-01-19 13:12:33 +00:00
|
|
|
community.general.modprobe:
|
2022-01-07 09:06:18 +00:00
|
|
|
name: udf
|
|
|
|
|
state: absent
|
2022-06-20 17:03:45 +01:00
|
|
|
when: not system_is_container
|
2022-01-07 09:06:18 +00:00
|
|
|
when:
|
2023-01-09 16:29:47 +00:00
|
|
|
- rhel9cis_rule_1_1_1_2
|
2022-01-07 09:06:18 +00:00
|
|
|
tags:
|
2022-03-30 11:08:18 +01:00
|
|
|
- level2-server
|
|
|
|
|
- level2-workstation
|
2022-01-07 09:06:18 +00:00
|
|
|
- patch
|
2023-01-09 16:29:47 +00:00
|
|
|
- rule_1.1.1.2
|
2022-01-07 09:06:18 +00:00
|
|
|
- udf
|