From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:52530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4o51-0003pS-S5 for guix-patches@gnu.org; Fri, 15 Mar 2019 10:45:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4o50-0001ur-KR for guix-patches@gnu.org; Fri, 15 Mar 2019 10:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4o50-0001uS-AM for guix-patches@gnu.org; Fri, 15 Mar 2019 10:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h4o4z-00057I-Pk for guix-patches@gnu.org; Fri, 15 Mar 2019 10:45:01 -0400 Subject: [bug#34859] [PATCH] pack: "-RR" produces PRoot-enabled relocatable binaries. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190314161026.15696-1-ludo@gnu.org> <1ef41855caba45a267f90532d40a47f3@lepiller.eu> Date: Fri, 15 Mar 2019 15:44:43 +0100 In-Reply-To: <1ef41855caba45a267f90532d40a47f3@lepiller.eu> (Julien Lepiller's message of "Fri, 15 Mar 2019 15:24:54 +0100") Message-ID: <87imwk2o4k.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Julien Lepiller Cc: 34859@debbugs.gnu.org Hello! Julien Lepiller skribis: > How does it work? do you look for a proot on the system where the pack > is unpacked, or is it included in the pack? The pack includes =E2=80=98proot-static=E2=80=99, which takes approximately= 1=C2=A0MiB. The =E2=80=98run-in-namespace.c=E2=80=99 wrapper determines its own location via /proc/self/exe; from there it determines the location of the unpacked store, and then determines the location of the statically-linked =E2=80=98p= root=E2=80=99 program. So it basically automates the PRoot trick described at . Ludo=E2=80=99.