## Managed by Ansible, role audit_rules. Local edits are overwritten. ## Search by key: ausearch -k . -b {{ audit_rules_backlog }} {% for w in audit_rules_watches + audit_rules_extra_watches %} -w {{ w.path }} -p wa -k {{ w.key }} {% endfor %} ## Kernel modules loaded or removed -a always,exit -F arch=b64 -S init_module,finit_module,delete_module -k modules {% if ansible_facts['architecture'] == 'x86_64' %} -a always,exit -F arch=b32 -S init_module,finit_module,delete_module -k modules {% endif %} ## Commands run by people who signed in (auid is that account). 32-bit ## programs are covered on x86_64, where they can run. {% for arch in (['b64', 'b32'] if ansible_facts['architecture'] == 'x86_64' else ['b64']) %} {% if audit_rules_root_commands %} -a always,exit -F arch={{ arch }} -S execve -F euid=0 -F auid>=1000 -F auid!=unset -k root_commands {% endif %} {% if audit_rules_all_user_commands %} -a always,exit -F arch={{ arch }} -S execve -F auid>=1000 -F auid!=unset -k user_commands {% endif %} {% endfor %}