ansible-lockdown / UBUNTU22-CIS

Ansible role for Ubuntu22 CIS Baseline
https://ansible-lockdown.readthedocs.io/en/latest/
MIT License
181 stars 80 forks source link

1.8.{2-3} Using `/etc/gdm3/greeter.dconf-defaults` does NOT make CIS report rules as compliant #124

Closed ipruteanu-sie closed 10 months ago

ipruteanu-sie commented 1 year ago

Describe the Issue Using /etc/gdm3/greeter.dconf-defaults file does not make CIS report a Pass status for rules 1.8.2 and 1.8.3.

I don't know if you ever tried these steps:

  1. sudo apt update && apt install -y gdm3 on the target Ubuntu system(which forces the condition for above-mentioned rules to be evaluated as True)
  2. Enabling variable which forces 1.8.2 and 1.8.3 rules, respectively: ubtu22cis_desktop_required: true in defaults\main.yml
  3. Running role against Ubuntu system(optionally using gnome as value for tags)
  4. Verify results reported by CIS.

Expected Behavior

Actual Behavior

Control(s) Affected

Environment (please complete the following information):

Additional Notes

this common approach suggested by above references works for CIS, but only because it it does not use /etc/gdm3/greeter.dconf-defaults defaults file.

Possible Solution I'll provide a PR, which would make CIS report Pass. I was wondering, though, if you had some reasons to use the defaults approach, reasons which could make my suggested fix not so good as your original approach.