Re: Compiling rules at boot when using systemd

Steve Grubb
2013-06-23T21:21:39Z

On Thursday, May 23, 2013 01:06:48 AM Laurent Bigonville wrote:
> Hello,
>
> I was wondering, the currently proposed solution to compile the rules
> when using systemd (copying the .services into /etc by hand) seems
> pretty hackish to me. Wouldn't it be better if there was a 2nd systemd
> .service file dedicated to call augenrules, disabled by default and
> depending against the main auditd.service file?
>
> This way the user could enable that new service instead of copying
> files by hand. This sounds better in distribution-wise and in cases
> changes are made to the .service file, the user will not be stuck with
> an old version in /etc.
>
> Any idea on this?

Not sure yet what the best approach is. Normally when restarting the audit
daemon you would get the latest rules loaded into the kernel. By separating
them, you wouldn't get that any more.

-Steve