mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-25 14:43:06 +00:00
added logic
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
ade06951ff
commit
e3a0ff8cd8
1 changed files with 38 additions and 0 deletions
|
|
@ -69,6 +69,44 @@
|
|||
- gui
|
||||
- rule_1.8.3
|
||||
|
||||
- name: "1.8.4 | PATCH | Ensure GDM screen locks when the user is idle"
|
||||
copy:
|
||||
dest: /etc/dconf/db/local.d/00-screensaver
|
||||
content: |
|
||||
[org/gnome/desktop/session]
|
||||
idle-delay=uint32 300
|
||||
[org/gnome/desktop/screensaver]
|
||||
lock-delay=uint32 5
|
||||
mode: '0644'
|
||||
notify: Reload dconf
|
||||
when:
|
||||
- rhel9cis_rule_1_8_4
|
||||
- rhel9cis_gui
|
||||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
- patch
|
||||
- gui
|
||||
- rule_1.8.4
|
||||
|
||||
- name: "1.8.5 PATCH | Ensure GDM screen locks cannot be overridden"
|
||||
lineinfile:
|
||||
path: /etc/dconf/db/local.d/locks/session
|
||||
create: true
|
||||
line: /org/gnome/desktop/screensaver/lock-delay
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0640
|
||||
when:
|
||||
- rhel9cis_rule_1_8_5
|
||||
- rhel9cis_gui
|
||||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
- patch
|
||||
- gui
|
||||
- rule_1.8.3
|
||||
|
||||
- name: "1.8.6 | PATCH | Ensure automatic mounting of removable media is disabled"
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/dconf/db/local.d/00-media-automount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue