From: Ricardo Wurmus <rekado@elephly.net>
To: "Ludovic Courtès" <ludovic.courtes@inria.fr>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Generating wrappers for execution in non-root non-Guix contexts
Date: Thu, 26 Apr 2018 15:39:21 +0200 [thread overview]
Message-ID: <87fu3it7cm.fsf@elephly.net> (raw)
In-Reply-To: <87zi1rwsv6.fsf@inria.fr>
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 it already is. Using a pack like that would require little
more than unpacking it and running the application — that’s much less
work than setting up Docker, Singularity or Guix itself, which may be
impossible in an environment where user privileges are severely
restricted.
> 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 compared to a compile-time
deterministic use of ptrace – after all, we know all /gnu/store
locations in advance.
--
Ricardo
next prev parent reply other threads:[~2018-04-26 13:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-25 9:14 Generating wrappers for execution in non-root non-Guix contexts Ludovic Courtès
2018-04-25 9:19 ` Pierre Neidhardt
2018-04-25 12:44 ` Ludovic Courtès
2018-04-26 13:39 ` Ricardo Wurmus [this message]
2018-04-26 14:58 ` Ludovic Courtès
2018-04-27 3:21 ` Chris Marusich
2018-04-27 16:38 ` Ludovic Courtès
2018-05-03 20:51 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fu3it7cm.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guix-devel@gnu.org \
--cc=ludovic.courtes@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.