Subject: Re: [bug#34859] [PATCH] pack: "-RR" produces PRoot-enabled relocatable binaries.

From: Ludovic Courtès <[email-masked]>
Date: Fri, 15 Mar 2019 15:44:43 +0100

Hello!

Julien Lepiller <[email-masked]> 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 ‘proot-static’, which takes approximately 1 MiB.  The
‘run-in-namespace.c’ 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 ‘proot’
program.

So it basically automates the PRoot trick described at
<https://guix-hpc.bordeaux.inria.fr/blog/2017/10/using-guix-without-being-root/>.

Ludo’.