ansible-lockdown / RHEL9-CIS

Ansible role for Red Hat 9 CIS Baseline
https://ansible-lockdown.readthedocs.io
MIT License
109 stars 86 forks source link

Extra space in regex causes gnome tools to not work #216

Open tedunder237 opened 1 month ago

tedunder237 commented 1 month ago

Describe the Issue An extra space in the regex is causing various gnome tools to not work properly

Expected Behavior Gnome tools to work properly

Actual Behavior Extra space is causing gnome tools to emit an error and not save configurations

Control(s) Affected 1.8.4

Environment (please complete the following information):

Possible Solution Change the following lines in tasks/section_1/cis_1.8.x.yml, line 92-93 Current:

            - { regexp: '^user-db', line: 'user-db: user' }
            - { regexp: '^system-db', line: 'system-db: local' }

To:

            - { regexp: '^user-db', line: 'user-db:user' }
            - { regexp: '^system-db', line: 'system-db:local' }

Tested on Rocky 9

uk-bolly commented 1 month ago

hi @tedunder237

Thank you for taking the time to raise this issue, it always helps to get the details you have provided. I am hoping to get this resolved and wityh a couple of other changes into the devel branch asap.

Many thanks

uk-bolly