Skip to content

Commit

Permalink
Add kernel parameter information to README (#259)
Browse files Browse the repository at this point in the history
* Add kernel parameter information to README

Add initial documentation around configuring audit=1 to reduce the inaccuracies in the auditd logs. 
Closes #253

Signed-off-by: Jared Ledvina <jared@techsmix.net>

* Cleanup spellinng

Signed-off-by: Jared Ledvina <jared@techsmix.net>
  • Loading branch information
jaredledvina authored and rndmh3ro committed Jan 25, 2020
1 parent aa3ceed commit 908d1fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ So for example if you want to change the IPv4 traffic forwarding variable to `1`

Alternatively you can change Ansible's [hash-behaviour](https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-hash-behaviour) to `merge`, then you only have to overwrite the single hash you need to. But please be aware that changing the hash-behaviour changes it for all your playbooks and is not recommended by Ansible.

## Improving Kernel Audit logging

By default, any process that starts before the `auditd` daemon will have an AUID of `4294967295`. To improve this and provide more accurate logging, it's recommended to add the kernel boot parameter `audit=1` to you configuration. Without doing this, you will find that your `auditd` logs fail to properly audit all processes.

For more information, please see this [upstream documentation](https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html) and your system's boot loader documentation for how to configure additional kernel parameters.

## Local Testing

The preferred way of locally testing the role is to use Docker. You will have to install Docker on your system. See [Get started](https://docs.docker.com/) for a Docker package suitable to for your system.
Expand Down

0 comments on commit 908d1fa

Please sign in to comment.