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.
This commit is contained in:
Luca Boccassi
2023-01-20 12:18:05 +00:00
parent f840c7d58d
commit da20baaecc
6 changed files with 332 additions and 1 deletions
+8
View File
@@ -802,4 +802,12 @@ global:
sd_bus_emit_signal_to;
sd_bus_emit_signal_tov;
sd_bus_message_new_signal_to;
sd_pidfd_get_cgroup;
sd_pidfd_get_machine_name;
sd_pidfd_get_owner_uid;
sd_pidfd_get_session;
sd_pidfd_get_slice;
sd_pidfd_get_unit;
sd_pidfd_get_user_slice;
sd_pidfd_get_user_unit;
} LIBSYSTEMD_252;