Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jobs/auditd/spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ properties:
default: []
example:
- "-a always,exit -F perm=x -F auid>=500 -F auid!=4294967295 -F path=/usr/bin/who -k privileged"
pre_start_delay:
description: The number of seconds to delay running the pre-start script. This can be used, for example, to avoid a race condition with other pre-start scripts, such as IPsec's, that can prevent auditd From starting
default: 0
example: 30
7 changes: 7 additions & 0 deletions jobs/auditd/templates/pre-start
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

set -xeu -o pipefail

date
echo Delaying start for '<%= p("pre_start_delay") %>' seconds
sleep '<%= p("pre_start_delay") %>'
date

if ! grep -e '^-e 2$' /etc/audit/rules.d/audit.rules -q; then
echo '
# Custom rules; added by auditd job (os-conf-release)
Expand Down