[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generating wrappers for execution in non-root non-Guix contexts
From: |
Ludovic Courtès |
Subject: |
Re: Generating wrappers for execution in non-root non-Guix contexts |
Date: |
Thu, 03 May 2018 22:51:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
address@hidden (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 a pack on a machine that lacks Guix:
>
> address@hidden:~/tmp$ tar xf ../pack.tgz
> address@hidden:~/tmp$ echo hello > foo
> address@hidden:~/tmp$
> gnu/store/ffdzkyi23n8xh3n6vfqpa1lzg3xx9jpj-sed-4.4/bin/sed -i foo
> -es/hello/bye/g
> address@hidden:~/tmp$ cat foo
> bye
> address@hidden:~/tmp$ ls /gnu/store
> ls: cannot access '/gnu/store': No such file or directory
You can watch the next episode of this season (and be part of it!)
at <https://bugs.gnu.org/31360>.
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Generating wrappers for execution in non-root non-Guix contexts,
Ludovic Courtès <=