[Bug libc/31736] ability to specify pidns (and probably other namespace types) in pidfd_spawn()

adhemerval.zanella at linaro dot org sourceware-bugzilla@sourceware.org
Thu May 16 07:40:41 GMT 2024


https://sourceware.org/bugzilla/show_bug.cgi?id=31736

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
The most straightforward API I can think of would be to add something like
POSIX_SPAWN_SETNEWPID_NS which internally will issue clone with
POSIX_SPAWN_SETSID and set_tid to 1.

If you need something more complex like the PID list support for CRIU, it would
require a more complex API (like a new posix_spawnattr_* get/set the PID list),
which I am not sure how useful would be outside CRIU context.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list