Add gnome rules opensuse leap16 - #15122
Draft
teacup-on-rockingchair wants to merge 9 commits into
Draft
Conversation
|
Skipping CI for Draft Pull Request. |
Contributor
|
This datastream diff is auto generated by the check Click here to see the full diffansible remediation for rule 'xccdf_org.ssgproject.content_rule_dconf_gnome_screensaver_lock_enabled' differs.
--- xccdf_org.ssgproject.content_rule_dconf_gnome_screensaver_lock_enabled
+++ xccdf_org.ssgproject.content_rule_dconf_gnome_screensaver_lock_enabled
@@ -26,10 +26,8 @@
create: true
no_extra_spaces: true
mode: 420
- when:
- - '"gdm" in ansible_facts.packages'
- - ansible_distribution != 'SLES'
register: screensaver_config
+ when: '"gdm" in ansible_facts.packages'
tags:
- CCE-80777-6
- CJIS-5.5.5
@@ -53,10 +51,8 @@
line: /org/gnome/desktop/screensaver/lock-enabled
create: true
mode: 420
- when:
- - '"gdm" in ansible_facts.packages'
- - ansible_distribution != 'SLES'
register: screensaver_lock
+ when: '"gdm" in ansible_facts.packages'
tags:
- CCE-80777-6
- CJIS-5.5.5
@@ -72,47 +68,12 @@
- no_reboot_needed
- unknown_strategy
-- name: Enable GNOME3 Screensaver Lock After Idle Period - Enable GNOME3 Screensaver
- Lock After Idle Period
- community.general.ini_file:
- dest: /etc/dconf/db/gdm.d/00-security-settings
- section: org/gnome/desktop/lockdown
- option: disable-lock-screen
- value: 'false'
- create: true
- no_extra_spaces: true
- mode: 420
+- name: Enable GNOME3 Screensaver Lock After Idle Period - Update dconf database for
+ non-SLES systems
+ ansible.builtin.command: dconf update
when:
- '"gdm" in ansible_facts.packages'
- - ansible_distribution == 'SLES'
- register: lockdown_config
- tags:
- - CCE-80777-6
- - CJIS-5.5.5
- - DISA-STIG-RHEL-08-020030
- - NIST-800-53-CM-6(a)
- - PCI-DSS-Req-8.1.8
- - PCI-DSSv4-8.2
- - PCI-DSSv4-8.2.8
- - dconf_gnome_screensaver_lock_enabled
- - low_complexity
- - medium_disruption
- - medium_severity
- - no_reboot_needed
- - unknown_strategy
-
-- name: Enable GNOME3 Screensaver Lock After Idle Period - Prevent user modification
- of GNOME disable-lock-screen
- ansible.builtin.lineinfile:
- path: /etc/dconf/db/gdm.d/locks/00-security-settings-lock
- regexp: ^/org/gnome/desktop/lockdown/disable-lock-screen$
- line: /org/gnome/desktop/lockdown/disable-lock-screen
- create: true
- mode: 420
- when:
- - '"gdm" in ansible_facts.packages'
- - ansible_distribution == 'SLES'
- register: lockdown_lock
+ - (screensaver_config is changed or screensaver_lock is changed)
tags:
- CCE-80777-6
- CJIS-5.5.5
@@ -132,10 +93,8 @@
disable-lock-screen false
ansible.builtin.command: gsettings get org.gnome.desktop.lockdown disable-lock-screen
register: cmd_out
- when:
- - '"gdm" in ansible_facts.packages'
- - ansible_distribution == 'SLES'
changed_when: false
+ when: '"gdm" in ansible_facts.packages'
tags:
- CCE-80777-6
- CJIS-5.5.5
@@ -157,7 +116,6 @@
false
when:
- '"gdm" in ansible_facts.packages'
- - ansible_distribution == 'SLES'
- cmd_out.stdout != 'false'
tags:
- CCE-80777-6
@@ -173,47 +131,3 @@
- medium_severity
- no_reboot_needed
- unknown_strategy
-
-- name: Enable GNOME3 Screensaver Lock After Idle Period - Update dconf database for
- non-SLES systems
- ansible.builtin.command: dconf update
- when:
- - '"gdm" in ansible_facts.packages'
- - ansible_distribution != 'SLES'
- - (screensaver_config is changed or screensaver_lock is changed)
- tags:
- - CCE-80777-6
- - CJIS-5.5.5
- - DISA-STIG-RHEL-08-020030
- - NIST-800-53-CM-6(a)
- - PCI-DSS-Req-8.1.8
- - PCI-DSSv4-8.2
- - PCI-DSSv4-8.2.8
- - dconf_gnome_screensaver_lock_enabled
- - low_complexity
- - medium_disruption
- - medium_severity
- - no_reboot_needed
- - unknown_strategy
-
-- name: Enable GNOME3 Screensaver Lock After Idle Period - Update dconf database for
- SLES systems
- ansible.builtin.command: dconf update
- when:
- - '"gdm" in ansible_facts.packages'
- - ansible_distribution == 'SLES'
- - (lockdown_config is changed or lockdown_lock is changed)
- tags:
- - CCE-80777-6
- - CJIS-5.5.5
- - DISA-STIG-RHEL-08-020030
- - NIST-800-53-CM-6(a)
- - PCI-DSS-Req-8.1.8
- - PCI-DSSv4-8.2
- - PCI-DSSv4-8.2.8
- - dconf_gnome_screensaver_lock_enabled
- - low_complexity
- - medium_disruption
- - medium_severity
- - no_reboot_needed
- - unknown_strategy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Rationale:
Review Hints: