ludovic.cour...@inria.fr (Ludovic Courtès) skribis:
> The hack below allows ‘guix pack’ to produce wrappers that allow,
> through user namespaces, programs to automatically relocate themselves
> when you run them unprivileged on a machine that lacks Guix. In the
> example below, I run ‘sed’ from
Hello!
Chris Marusich skribis:
> ludovic.cour...@inria.fr (Ludovic Courtès) writes:
>
>> Hello Guix!
>>
>> The hack below allows ‘guix pack’ to produce wrappers that allow,
>> through user namespaces, programs to automatically relocate themselves
>> when you run them unprivileged on a machine th
ludovic.cour...@inria.fr (Ludovic Courtès) writes:
> Hello Guix!
>
> The hack below allows ‘guix pack’ to produce wrappers that allow,
> through user namespaces, programs to automatically relocate themselves
> when you run them unprivileged on a machine that lacks Guix.
That's really cool!
I've
Hey!
Ricardo Wurmus skribis:
>> We could also have wrappers fall back to PRoot when unshare(2) fails.
>
> Good idea. Could we use ptrace directly and optimize it for the case of
> “/gnu/store” paths? I’m just guessing that PRoot may incur a higher
> performance penalty because it’s so generic
Hi Ludo,
> The hack below allows ‘guix pack’ to produce wrappers that allow,
> through user namespaces, programs to automatically relocate themselves
> when you run them unprivileged on a machine that lacks Guix.
This is very cool and very useful! It would make “guix pack” much more
useful than
Pierre Neidhardt skribis:
> Brilliant!
>
> Would this only work for C-based programs?
No, it works for everything. It’s brute-force I must say. :-)
Ludo’.
Brilliant!
Would this only work for C-based programs?
What about other languages, shared libaries, external resources, etc.?
--
Pierre Neidhardt
The only "ism" Hollywood believes in is plagiarism.
-- Dorothy Parker
signature.asc
Description: PGP signature
Hello Guix!
The hack below allows ‘guix pack’ to produce wrappers that allow,
through user namespaces, programs to automatically relocate themselves
when you run them unprivileged on a machine that lacks Guix. In the
example below, I run ‘sed’ from a pack on a machine that lacks Guix:
--8<--