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

5.6.5 Ensure default user umask is 027 or more restrictive: CIS-CAT check fails. #157

Closed brisky closed 11 months ago

brisky commented 11 months ago

Describe the Issue CIS-CAT fails for this test, because it expects an entry session required pam_umask.so' in /etc/pam.d/system-auth

Remediation does not cover issue.

Expected Behavior CIS-CAT Assessment pass.

Actual Behavior CIS-CAT Assessment fail.

Control(s) Affected 5.6.5 Ensure default user umask is 027 or more restrictive.

Environment :

Additional Notes N/A

Possible Solution Fix on cis_5.6.x.yml


      - name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Force umask on sessions /etc/pam.d/system-auth"
        ansible.builtin.lineinfile:
            path: /etc/pam.d/system-auth
            line: 'session     required            pam_umask.so'
            insertafter: EOF
brisky commented 11 months ago

Should have been opened in RHEL9-CIS.