You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suricata/.github/workflows
Victor Julien 34f53f85bc systemd: reimplement sd_notify logic using UNIX socket
One of the lessons of the XZ backdoor story was that just linking to
libsystemd to call sd_notify is discouraged by the systemd project:

Lennart Poettering:
"PSA: In context of the xzpocalypse we now added an example reimplementation
of sd_notify() to our man page:

https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html#Notes

It's pretty comprehensive (i.e. uses it for reload notification too), but
still relatively short.

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. After all, the protocol is so trivial"

From: https://mastodon.social/@pid_eins/112202687764571433

This commit takes the example code and uses it to reimplement the notify
logic.

The code is enabled if Linux is detected in configure. Since the code
won't do anything if the NOTIFY_SOCKET env var isn't set, this should
also work fine on systems w/o systemd.

Ticket: #6913.
2 years ago
..
authors-done.yml github-ci: update actions/github-script 3 years ago
authors.yml ci: right sha for authors check 3 years ago
build-centos-7.yml github-ci: use all cores available 3 years ago
builds.yml systemd: reimplement sd_notify logic using UNIX socket 2 years ago
cifuzz.yml github-ci: cancel previous job for all workflows 3 years ago
codeql.yml github-actions: bump github/codeql-action from 3.24.6 to 3.24.9 2 years ago
commits.yml github-ci: cancel previous job for all workflows 3 years ago
formatting.yml github-ci: cancel previous job for all workflows 3 years ago
rust-checks.yml rust: weekly cargo audit and update 3 years ago
rust.yml github-ci: cancel previous job for all workflows 3 years ago
scan-build.yml github-ci: set checkout directory as safe before running git commands 2 years ago
scorecards-analysis.yml github-actions: bump github/codeql-action from 3.24.6 to 3.24.9 2 years ago