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

dtprobed: drop libsystemd linkage #92

Open
thesamesam opened this issue Aug 27, 2024 · 1 comment
Open

dtprobed: drop libsystemd linkage #92

thesamesam opened this issue Aug 27, 2024 · 1 comment
Assignees

Comments

@thesamesam
Copy link

thesamesam commented Aug 27, 2024

Using libsystemd purely for sd_notify got a tonne of discussion after the xz backdoor.

At that time, Lennart himself posted saying that projects shouldn't bring in libsystemd purely for the simple sd_notify API:

In the past, I have been telling anyone who wanted to listen that if all you want is sd_notify() then don't bother linking to libsystemd, since the protocol is stable and should be considered the API, not our C wrapper around it.

See https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html#Standalone%20Implementations for an example.

Let's NIH the trivial protocol to drop a hefty library from a privileged, albeit tiny, daemon.

@nickalcock
Copy link
Member

Agreed. I've been thinking of this for some time. It's about five lines, and we're doing something similar just to daemonize dtprobed in the absence of systemd anyway.

@nickalcock nickalcock self-assigned this Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants