]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-login: add sd_pidfd_* APIs 26114/head
authorLuca Boccassi <bluca@debian.org>
Thu, 19 Jan 2023 23:20:55 +0000 (23:20 +0000)
committerLuca Boccassi <bluca@debian.org>
Fri, 20 Jan 2023 12:18:05 +0000 (12:18 +0000)
commitda20baaeccbcca78350bf64bdc069dec685c95bc
tree85004b30d748e95c61fa1d1ac46b3836cde718ea
parentf840c7d58dcd39fa98a887c50a9be5c35dbb599f
sd-login: add sd_pidfd_* APIs

Same as the sd_pid_* counterparts, but take a pid file descriptor instead of
a pid, so that the callers can be sure that the returned values are really
about the process they asked for, and not about a recycled PID.
man/rules/meson.build
man/sd_pid_get_owner_uid.xml
src/libsystemd/libsystemd.sym
src/libsystemd/sd-login/sd-login.c
src/libsystemd/sd-login/test-login.c
src/systemd/sd-login.h