angler-fishThe Vulnerability History Project

sd-daemon: introduce sd_pid_notify() and sd_pid_notifyf()

      sd_pid_notify() operates like sd_notify(), however operates on a
different PID (for example the parent PID of a process).

Make use of this in systemd-notify, so that message are sent from the
PID specified with --pid= rather than the usually shortlived PID of
systemd-notify itself.

This should increase the likelyhood that PID 1 can identify the cgroup
that the notification message was sent from properly.
    
commit be8f4e9e8eb3b0c34a49c2e80a5c5b7dc6d175f0
+101 -112
+24 -23
+8 -16
-12
expand_less