|
Message-ID: <6a117703dd9798bbb86eeaa6955764a9@ispras.ru> Date: Tue, 13 Oct 2020 18:48:41 +0300 From: Alexey Izbyshev <izbyshev@...ras.ru> To: musl@...ts.openwall.com Subject: Re: Calling setxid() in a vfork()-child On 2020-10-13 12:52, Laurent Bercot wrote: > This is one of process state change operations that are lacking in > posix_spawn(), along with being able to spawn the child as a session > leader (despite being able to spawn it as a process group leader). > Thankfully, POSIX_SPAWN_SETSID was accepted into POSIX[1] and is available in recent enough musl and glibc (and I also heard some rumors about macOS). But yes, even if we accept that simply setting some attributes for a new process is enough (as opposed to running more complex logic requiring an already created process, which is possible with fork()), having a fixed of them for an evolving entity is problematic, more so since on Linux posix_spawn() implementations are developed separately from the kernel. [1] https://www.austingroupbugs.net/view.php?id=1044
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.