From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sMTyLvd+amL3kAAAbAwnHQ (envelope-from ) for ; Thu, 28 Apr 2022 13:48:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id bXdCLvd+amKyFQEAG6o9tA (envelope-from ) for ; Thu, 28 Apr 2022 13:48:07 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5AF5E8A57 for ; Thu, 28 Apr 2022 13:48:07 +0200 (CEST) Received: from localhost ([::1]:46360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk2cw-0005ep-5a for larch@yhetil.org; Thu, 28 Apr 2022 07:48:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk2LW-0001nQ-CF for guix-patches@gnu.org; Thu, 28 Apr 2022 07:30:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk2LT-0001kr-Bl for guix-patches@gnu.org; Thu, 28 Apr 2022 07:30:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nk2LT-0007hy-2H for guix-patches@gnu.org; Thu, 28 Apr 2022 07:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54997] [PATCH 00/12] Add "least authority" program wrapper Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Apr 2022 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54997 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 54997@debbugs.gnu.org Received: via spool by 54997-submit@debbugs.gnu.org id=B54997.165114538929575 (code B ref 54997); Thu, 28 Apr 2022 11:30:02 +0000 Received: (at 54997) by debbugs.gnu.org; 28 Apr 2022 11:29:49 +0000 Received: from localhost ([127.0.0.1]:45609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk2LF-0007gx-01 for submit@debbugs.gnu.org; Thu, 28 Apr 2022 07:29:49 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:50516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk2LC-0007go-GC for 54997@debbugs.gnu.org; Thu, 28 Apr 2022 07:29:47 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id QBVk270084UW6Th06BVkvi; Thu, 28 Apr 2022 13:29:44 +0200 Message-ID: <31ff48d9240cf1ab53405c097bbe7148be3ed3bf.camel@telenet.be> From: Maxime Devos Date: Thu, 28 Apr 2022 13:29:39 +0200 In-Reply-To: <878rrqgp7x.fsf@gnu.org> References: <20220417210453.27884-1-ludo@gnu.org> <20220417210453.27884-9-ludo@gnu.org> <4eac7fd571ddafd46bcadfa2ef5c6b3e41a162ab.camel@telenet.be> <8735i8ratp.fsf_-_@gnu.org> <616af1474c44d6c1caf71fa1f9d263ff46462201.camel@telenet.be> <878rrqgp7x.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-SQKCswJm8LtwTojvG5zb" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1651145384; bh=P7o5iqnt6UEm1WXWzqvAU4oPd+OQFAUyOWSmB+tDpw8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=QXClyt4ucxMbFoNl/28ndwUd4c5ZXV8EdEREM4sesI1hhUIeGyolwS/zWKb7v5slv YFgtdnvFtZGvBiWJQZlPThJkg2qqcZJeG3+Dix6HouOo1/2orakIyJ348LhlV23ygH 0WeZwX6TyqOLmfapS3sbeUX2dydBFguVUGVSEByyYF2chpb55h1oQcKEFuQcu2Wgxc tvvE6nuj6HKkJTuiwMCGdoxsjBR3dFfpkABGu52VwEereFaZwKVR3wx66KgBpNEPP+ 8dYHu00mNNEvWrsilU6QZCO33VwpDyKF0NREMPmkQZ2ZeZ43ZhPvR9B8F2+VnLE1Ft rZPQxyb3KyqVw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651146487; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=P7o5iqnt6UEm1WXWzqvAU4oPd+OQFAUyOWSmB+tDpw8=; b=J2dZYAWpkHKVOI5W8b0WkYjgPV1zZxiw9jmh7QbgiSnD9pK12EAP+P7c5T72n+VvvhhOgI U0GWm/zl51eeyRyOKCY+wK0fUBT6m12UVgUMbgH6w0uKkJp2IvkN3Vx5JZ8dSL3He5EfAS se7QXcPOHT94luxxGgiJXhSuUERqELWAINxEYyx7Mk4PWYT7VQftAmlwKAUe8iT+2+Tcmm PmSBZMEkEtq9nqUXeHWZgtJtblmn/Oi+mJc2kbOd6SpB78SiwbKQc5g3IOQNETA+OCDb2Z Ck8FPTh1n95hygXvyq5uvmBRvrpCiwQkUql3XFSssYuz36xazB7n3fZynSUbmA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651146487; a=rsa-sha256; cv=none; b=IzGtMkN6rovAmkJtYYWlc2f42aPDOsVvdr0kvJjwztttE5KCKqfDC/jxAx5V31ie/P43Wq drH8xoTzayMaWDnZzt0kiJ2CB7xJdmuxXCNGYmXY2Sew1o3vJX8cDhcnCfb26AePxLuaVO r7/cKIU6Ou72rJIk9AqNf7TwfzBgtKcy0FqVozPGlQZrvRcZDFiv2N2Jf17HYrneYd7OfB TKTkGrlEIeaW/+oStnCvZlaIsn4Rj1kWBNDk2ur76CJJErq4/4Go1bhBL8rJxW8THD4H0J QbdBEYEfDbl2lWSVr841wPtqUi6W9HN9kPR7CplHL7GPk+7oJgs+td2PKFeaOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=QXClyt4u; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=QXClyt4u; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5AF5E8A57 X-Spam-Score: 2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: MmnsjDtojV9z --=-SQKCswJm8LtwTojvG5zb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op do 28-04-2022 om 00:01 [+0200]: > > Also, having to do fork, waitpid and primitive-fork seems rather > > low-level to me, so I prefer moving this code into somewhere like > > (gnu build SOMEWHERE) or to keep the old make-forkexec- > > constructor/container code. >=20 > =E2=80=98primitive-fork=E2=80=99 and =E2=80=98waitpid=E2=80=99 calls are = in (gnu build linux- > container) > right now so I guess we=E2=80=99re fine? Their use in (gnu build linux-container) seems fine to me, but their use in %ipfs-activation doesn't: > + #~(let ((pid (primitive-fork))) > + (if (zero? pid) > + (dynamic-wind > + (const #t) > + (lambda () > + [...] (execl #$(ipfs-binary config) #$@args))) > + (lambda () > + (primitive-exit 127))) Greetings, Maxime. --=-SQKCswJm8LtwTojvG5zb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYmp6oxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7p1jAP9PfrSueTBAfM/Qw995YPaSr4eN p4vvPWUCkB9J5IEwhwEApfLuiUtnl+I2rNltmKV4QbvxrUxdXqALl5eTqdzHDw8= =BlYP -----END PGP SIGNATURE----- --=-SQKCswJm8LtwTojvG5zb--