Yu Watanabe
|
e75372958d
|
missing_threads.h: threads.h exists since glibc-2.28
|
2025-03-04 02:24:49 +09:00 |
|
Mike Yuan
|
9c039ef5ff
|
pidfd-util: preferably acquire pidfd inode id through name_to_handle_at()
See rationales described in kernel commit:
https://github.com/torvalds/linux/commit/b3caba8f7a34a2bbaf45ffc6ff3a49b70afeb192
|
2025-01-22 21:41:44 +01:00 |
|
Lennart Poettering
|
afede53ae9
|
pidfd-util: add helper for getting our own pidfdid
let's start caching our own pidfd id, since it's somewhat involved to
get but a much better identifier for things than the classic PID is.
|
2025-01-20 21:51:29 +01:00 |
|
Lennart Poettering
|
5dc9d5b4ea
|
pidfd-util: dont open a new pidfd unnecessarily in pidfd_check_pidfs()
|
2025-01-20 21:49:38 +01:00 |
|
Mike Yuan
|
6e14c46bac
|
tree-wide: drop support for kernels without pidfd_open() and pidfd_send_signal()
Our baseline is v5.4 now.
|
2025-01-12 00:01:07 +01:00 |
|
Mike Yuan
|
47f64104d1
|
process-util: port pidref_get_uid() and pidref_is_my_child() to pidfd helpers
|
2025-01-04 17:48:22 +01:00 |
|
Mike Yuan
|
85e7bbfaa4
|
pidfd-util: introduce pidfd_get_{ppid,uid,cgroupid} which goes via PIDFD_GET_INFO too
|
2025-01-04 17:08:01 +01:00 |
|
Mike Yuan
|
dcf0ef3f42
|
pidfd-util: try to translate pidfd -> pid through ioctl(PIDFD_GET_INFO)
|
2025-01-04 17:08:01 +01:00 |
|
Mike Yuan
|
72661e0091
|
pidfd-util: introduce helper for obtaining ns fd using PIDFD_GET_*_NAMESPACE directly
|
2025-01-04 17:07:59 +01:00 |
|
Mike Yuan
|
2fa42318c3
|
pidref: move generic pidfd_get_inode_id() to pidfd-util
Prompted by https://github.com/systemd/systemd/pull/35224/commits/221d6e54c60389f26c2c79dbfa4e83204d2775d7
Also generalize pidfd_check_pidfs() and expose have_pidfs for later use.
|
2025-01-04 17:07:58 +01:00 |
|
Mike Yuan
|
b234026d09
|
process-util: extract pidfd-related funcs into pidfd-util.[ch]
|
2025-01-04 16:58:13 +01:00 |
|