From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14764 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: posix_spawn Date: Mon, 30 Sep 2019 22:21:02 -0400 Message-ID: <20191001022102.GA16318@brightrain.aerifal.cx> References: <20190930223632.GW9017@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="212010"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: musl To: Joshua Hudson Original-X-From: musl-return-14780-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 01 04:21:24 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iF7mw-000sye-ED for gllmg-musl@m.gmane.org; Tue, 01 Oct 2019 04:21:18 +0200 Original-Received: (qmail 18033 invoked by uid 550); 1 Oct 2019 02:21:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18014 invoked from network); 1 Oct 2019 02:21:15 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14764 Archived-At: On Mon, Sep 30, 2019 at 06:58:15PM -0700, Joshua Hudson wrote: > Well that was a long dead end. posix_spawnp won't call setgroups. In a worst case, you use a helper executable (or shell script) to exec the final program you want running as the child with the changes you want made to its initial execution environment. This can work around any deficiency in posix_spawn capabilities. It adds a little bit of cost but it's nowhere near as big as the cost of fork duplicating the whole VM space and making it all COW. > You now have a quirk and I need to actually detect musl libc. Huh? This does not sound musl-specific. Rich