Skip to content

Commit

Permalink
fix arch name to match ansible provided arch
Browse files Browse the repository at this point in the history
  • Loading branch information
arousseau-coveo committed Jan 22, 2025
1 parent e58cbbd commit 7867804
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tasks/auditd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,10 @@
# Since auditd rules are dependent on syscalls and syscall tables are architecture specific,
# we need to update the auditd rules depending on the architecture of the system.
# This task passed the syscalls table to the auditd template and updates the auditd rules
# If no syscalls table is found for the architecture, the task will use the syscalls table for all architectures
# This way we can ensure that the auditd rules are updated with only syscalls that are supported by the system
# The failover make sure of backward compatibility in case the syscalls table is not found for the architecture
- name: Set supported_syscalls variable
shell: ausyscall --dump | awk '{print $2}'
register: syscalls

- name: Print return information from the previous task
ansible.builtin.debug:
var: syscalls.stdout_lines

- name: POST | Apply auditd template for section 4.1.3.x
when: update_audit_template
ansible.builtin.template:
Expand Down

0 comments on commit 7867804

Please sign in to comment.