Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auditd job has an optional pre-start delay #67

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cunnie
Copy link
Member

@cunnie cunnie commented Jun 2, 2023

The auditd job's pre-start script can fail when colocated with IPsec. If the pre-start script restarts auditd before IPsec has stabilized, auditd will fail with "No buffer space available", causing the pre-start script to fail.

This commit addresses that failure by introducing an optional property, pre_start_delay, which can be used to delay the start of the auditd pre-start script, allowing the IPsec pre-start script to finish.

Fixes, during bosh deploy:

1 of 12 pre-start scripts failed. Failed Jobs: auditd

Fixes, from /var/log/daemon.log:

auditd[6522]: Error receiving audit netlink packet (No buffer space available)

I've tested this with the pre_start_delay set to 30 and also with it not set at all.

The auditd job's pre-start script can fail when colocated with IPsec. If
the pre-start script restarts auditd before IPsec has stabilized, auditd
will fail with "No buffer space available", causing the pre-start script
to fail.

This commit addresses that failure by introducing an optional property,
`pre_start_delay`, which can be used to delay the start of the auditd
pre-start script, allowing the IPsec pre-start script to finish.

Fixes, during `bosh deploy`:
```
1 of 12 pre-start scripts failed. Failed Jobs: auditd
```

Fixes, from /var/log/daemon.log:
```
auditd[6522]: Error receiving audit netlink packet (No buffer space available)
```
@cunnie cunnie force-pushed the auditd-pre-start-delay branch from 31b872d to a96f5d7 Compare June 5, 2023 15:22
@cunnie cunnie marked this pull request as draft June 5, 2023 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant