From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MH3BLNoxFmRU8wAASxT56A (envelope-from ) for ; Sat, 18 Mar 2023 22:49:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ON/uK9oxFmQ5AQAAG6o9tA (envelope-from ) for ; Sat, 18 Mar 2023 22:49:14 +0100 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 68C481AC33 for ; Sat, 18 Mar 2023 22:49:14 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=VGRZn8g0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679176154; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=NfC0/S2AdS/wW4B6fas0fJF4coaUOsWH7Xyj9h4PkoI=; b=aNxo27MxsrWDBdIagyxVxuXieKaQjWJmuwhSb5//QaXh2bOK2uKzNgsezw2SNwr8rxCBhs WWvu6UW2NYPCj2N2ZYL6YWluNEIzAkKioojoCMRR14/W9sgGy+VgcWdx/0kdIL9t1BSrFt Sn5b8eQt8IhgK7EJrTW6rOALc74TXAnE5huc0w7sbFWIlwMp+a5VQYEF1HnI1n3ajIzW1c ig6mbm+HKBpq0X3OOwpETgSvfP5Qb81KVAjontPTLOD+Sk1GXGQZmcCJqkuEYWbVCDgi/9 SSiHh1RkZUXbFxvhd1y7jwbghSfAXZW8kwBqfnPH3ML1KZMzTCirntFrOzSp/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=VGRZn8g0; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679176154; a=rsa-sha256; cv=none; b=eROLbp1T28fvaO2UP5mDHBhUTpasOBodq+Ae/Q6nXQwLJPr1xGlfB3M0o679b3vNGVpoap vQkT0mTDh5G041zIDbdcoF/uiG1jvgAXVsqoq+6eX5h/v2T/DU1IQYPWwr6eTan9TQdZIg 8k9XDVvssRptDepBnbFzMjbp6nvBaF8o0pkOmN134CSL/hGqRsxuS4dGAz/0c6x6cCwcf1 qtNqa2zpAY2TVlbSOAsceN/7XYRLoclfKVHvROH1X+G4UqoCWDvoJOitX4QPlAiKGcD3ea 5h0vha8V7ceElEeywlhX8KXvp6njeOq8cMJr/rsYrlNb1El8i+HxC8GiboQ6ww== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdeQC-0004lo-1c; Sat, 18 Mar 2023 17:49:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pdeQA-0004lf-Og for bug-guix@gnu.org; Sat, 18 Mar 2023 17:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pdeQA-00026y-B9 for bug-guix@gnu.org; Sat, 18 Mar 2023 17:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pdeQA-0000Rw-3w for bug-guix@gnu.org; Sat, 18 Mar 2023 17:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62253: Fakechroot execution engine =?UTF-8?Q?doesn=E2=80=99t?= outlive =?UTF-8?Q?=E2=80=98exec=E2=80=99?= calls Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 18 Mar 2023 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62253 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 62253@debbugs.gnu.org Received: via spool by 62253-submit@debbugs.gnu.org id=B62253.16791760831549 (code B ref 62253); Sat, 18 Mar 2023 21:49:02 +0000 Received: (at 62253) by debbugs.gnu.org; 18 Mar 2023 21:48:03 +0000 Received: from localhost ([127.0.0.1]:49148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdePC-0000Ot-Jj for submit@debbugs.gnu.org; Sat, 18 Mar 2023 17:48:02 -0400 Received: from jpoiret.xyz ([206.189.101.64]:45918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pdeP9-0000OD-Rg for 62253@debbugs.gnu.org; Sat, 18 Mar 2023 17:48:01 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 0B821185320; Sat, 18 Mar 2023 21:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1679176078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NfC0/S2AdS/wW4B6fas0fJF4coaUOsWH7Xyj9h4PkoI=; b=VGRZn8g0UdlShD+ZaTGiVADMF5WoJDzvRKM1B3nhcT65XkWXxyt3QHD+QOYfOpUoVSpv2v BFT2GOZebk+N4/HmOa0owrD9RcV2A2955f15Jhsjy2Fs04OjzvuI+bytqbZfw5cqdTPuKh lAc+8SjMLsjVFkF9mO5PEiSQ9BMPIdKvslhEgCW2nhgHSaEsJTVOs2ZNfPNitt5muCVBZJ 5upYENRaSllsPttYy3NgULBDwMEWEiE2G45s8TyLxY0Wmgi/vrIzqMRL0nOI8WQkpOLHtH gW6Qc/fVFJ79RwRHe5lsg+cevoDni2vvxFUU+KLK73CeSlA4elSqAktNnneeNQ== In-Reply-To: <877cveuvov.fsf@inria.fr> References: <877cveuvov.fsf@inria.fr> Date: Sat, 18 Mar 2023 22:47:52 +0100 Message-ID: <87jzzd68af.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: -- X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret X-Migadu-Queue-Id: 68C481AC33 X-Spam-Score: -6.65 X-Migadu-Spam-Score: -6.65 X-Migadu-Scanner: scn0.migadu.com From: Josselin Poiret via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: lpPXWDJFxDGy --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: > I can think of several ways to address that: > > 1. Change the exec* wrappers in libfakechroot such that, on ENOENT, > they try a direct ld.so invocation to run program, like > =E2=80=98run-in-namespace.c=E2=80=99 does. > > Problem is that for this to work correctly, it would need to > compute the =E2=80=98--library-path=E2=80=99 argument at run time, b= y computing the > equivalent of (map dirname (file-needed/recursive program)). > Impractical at best. > > 2. Wrap/graft every package in the closure (as opposed to generating > wrappers for just those packages that appear in the profile, which > is what =E2=80=98guix pack=E2=80=99 currently does). > > The downside is that the =E2=80=9Cuserns=E2=80=9D and =E2=80=9Cproot= =E2=80=9D execution engines > don=E2=80=99t need something this heavyweight: they just need a leaf > package to be wrapped. > > 3. Ignore the problem. After all, we=E2=80=99re talking about a corner= case > of the =E2=80=9Cfakechroot=E2=80=9D engine, which is a niche within = a niche. > > Food for thought=E2=80=A6 I would like to be proven wrong, but I don't think anyone has run into this, and there are other possible engines (that do require more privileges, sure). It seems quite non-trivial to fix, so this can probably go on the back-burner until someone actually complains (please do so). Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmQWMYgQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5FhcaiqmIC/sGGKV8E/eh+V686YljPOpCFofNfD8zG8f4 SmAm1ejzeHZ2zpC75226tZqxNLEcu/H34O6hZuiBEJKlBpVdy4mcKR7yy9/NqILR gW6KrQvPKo2IJe52oOXFi6HJLYKVDx5V5+EdDk9vdDK6X6TihKfj9q8lPIzyrIxh A4+mEbRBMBQOqghErpWHPRwsBVSxsSILE/cpjrKArcMktIGsyKQxFKr+4s4AggjV UNQ27WiQ5LQNf+TfuUiyDWdw7RLz5fsVe7fItjLT5AGSBYcG/zXPvTqZB/if0wXs WEV7kfRdT6tNSZV9SKgfj5KaHYXXLh9gdj5iTB+4Mo9OrcacXyjazxGkEbOkNYeD rZ+bYsXY04JBb4FkvaWze+TmuJ/m0rvkxMhXtIvURGmH+Ki9YUFwb0nj7qQPuVPz tZ+/mAQSYaI9CwuyGyQigX+WIpwhM8hAHHo9/NjRln0Wn25syrO0RYFidIv8c2Kc mvMbjhLIMwYxgmpd/y4c4xZM1X6xFnk= =1JeR -----END PGP SIGNATURE----- --=-=-=--