linux-audit / audit-userspace

Linux audit userspace repository
GNU General Public License v2.0
589 stars 206 forks source link

Remove systemd as runtime dependecy #374

Closed klorenz0 closed 2 months ago

klorenz0 commented 4 months ago

Auditd does not depend on systemd for building and running. It only depends on systemd if systemd service files are used to start auditd. But auditd can be started by other init systems e.g. OpenRC as well. As done in Alpine Linux (https://git.alpinelinux.org/aports/tree/main/audit/auditd.initd)

Therefore stating systemd as runtime dependency is misleading.

stevegrubb commented 4 months ago

I've delayed responding to this to gather my thoughts. I've had my arguments with systemd developers here and in their issue tracker. At this point, I'm tired of it. I cannot accept this patch in it's current form because this repo literally provides systemd support. Not that I am an enthusiast, but it's reality.

What I am willing to accept is a statement that says something to the effect that auditd can be run by other init systems with a link to supporting documents and a link to an example file used by said init system that users of auditd would find useful. I want to find a middle ground that I publish useful information to auditd users without getting bogged down in systemd's merits.

In other words, let's make systemd an "or". Provide a modest description so that other maintainers who might be switching init systems have something to work with. Maybe eventually supply the file and update configure.ac/Makefile.am to accept a switch that installs the right init script for OpenRC.

I'm open to that, not deleting systemd. I hope you understand.

klorenz0 commented 4 months ago

That sounds reasonable. I implemented the changes. LMK what you think.