]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include: add helper routines for opening and validating pidfds
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Tue, 25 Nov 2025 04:26:48 +0000 (23:26 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 4 Dec 2025 18:45:03 +0000 (13:45 -0500)
commitbf7166be215a473852204f74f62d3862b66d9b52
treed88a667cbd1368981e5da3f5582ff70cb09f10b9
parentb650e692702bda91d2b6ff4a27329f2ea087274f
include: add helper routines for opening and validating pidfds

With the new ul_get_valid_pidfd_or_err() routine util-linux
tools can now simply validate pidfd inode numbers before
opening a file descriptor for a given PID.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
include/pidfd-utils.h
lib/Makemodule.am
lib/meson.build
lib/pidfd-utils.c [new file with mode: 0644]