Skip to content

Commit d9c1d44

Browse files
Merge pull request #83 from ansible-lockdown/pub_audit_template
updated missing 6.2.3.19 for query and create
2 parents 2842c9b + 867a406 commit d9c1d44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ ubtu24cis_pam_confd_dir: 'usr/share/pam-configs/'
950950

951951
# Controls 5.3.2.1 - pam_unix
952952
# Name of file
953-
ubtu24cis_pam_pwunix_file: 'pam_unix'
953+
ubtu24cis_pam_pwunix_file: 'unix'
954954
# Should NOT be enabled if allowing custom config that enabled pam_faillock
955955
ubtu24cis_pam_create_pamunix_file: false
956956
# Allow pam-auth-update --enable ubtu24cis_pam_pwunix_file to run

tasks/section_5/cis_5.3.3.4.x.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- name: "5.3.3.4.2 | PATCH | Ensure pam_unix does not include remember | Ensure remember removed"
4747
when: discovered_pam_remember.stdout | length > 0
4848
ansible.builtin.replace:
49-
path: "{{ item }}"
49+
path: "/{{ ubtu24cis_pam_confd_dir }}{{ ubtu24cis_pam_pwunix_file }}"
5050
regexp: remember=\d+
5151
replace: ''
5252
loop: "{{ discovered_pam_remember.stdout_lines }}"

templates/audit/99_auditd.rules.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
{% endif %}
122122
{% if ubtu24cis_rule_6_2_3_19 %}
123123
-a always,exit -F path=/usr/bin/kmod -F perm=x -F auid>=1000 -F auid!=-1 -k kernel_modules
124-
{% set syscalls = ["init_module","finit_module","delete_module"] %}
124+
{% set syscalls = ["init_module","finit_module","delete_module","create_module","query_module"] %}
125125
{% set arch_syscalls = syscalls | select("in", supported_syscalls) | list %}
126126
-a always,exit -F arch=b64 -S {{ arch_syscalls|join(',') }} -F auid>=1000 -F auid!=-1 -k kernel_modules
127127
{% endif %}

0 commit comments

Comments
 (0)