Completing the pidfd API
Completing the pidfd API
Posted Jun 14, 2023 2:44 UTC (Wed) by jredfox_ (guest, #165585)Parent article: Completing the pidfd API
Or an even better solution create a call called reservePID(unsigned long PID). this will reserve the PID until the process that called it is closed. For security reasons it should limit the number of reserves it can use to about 200 PID's for IPC(unrelated non child process's) per process and unlimited amount for child process's.
Posted Jun 14, 2023 5:07 UTC (Wed)
by Cyberax (✭ supporter ✭, #52523)
[Link] (2 responses)
Why not UUIDs then?
And pidreserve doesn't prevent all race attacks.
Posted Jun 14, 2023 23:23 UTC (Wed)
by jredfox_ (guest, #165585)
[Link] (1 responses)
Posted Jun 15, 2023 1:42 UTC (Thu)
by Cyberax (✭ supporter ✭, #52523)
[Link]
But more practically, your system with time-based IDs is just ugly, just like UUIDs.
And pidreserve() won't help against targeted wraparound attacks.
Completing the pidfd API
Completing the pidfd API
Completing the pidfd API
