mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Laurent Bercot <ska-dietlibc@skarnet.org>
To: musl@lists.openwall.com
Subject: Re: Re: MUSL_LIBRARY_PATH ?
Date: Sun, 06 Apr 2014 21:27:10 +0100	[thread overview]
Message-ID: <5341B89E.6060800@skarnet.org> (raw)
In-Reply-To: <20140406172254.GA26358@brightrain.aerifal.cx>

On 06/04/2014 18:22, Rich Felker wrote:
> Actually execline is not a solution for this, since the #! line that
> invokes execline has to contain an absolute pathname to execline,
> which is exactly the same problem we were trying to solve to begin
> with: the need to install the program interpreter at a fixed absolute
> pathname on a system you might not have root on.

  That will of course change when execline has conquered the world and
is installed by every administrator at a standardized location. You're
not helping me much with that goal here. :)


> This can be avoided by using /usr/bin/env if you're willing to trust
> that the env command is at that location and and the user adds
> execline to their PATH, but that's fragile and adds yet another level
> of indirection at program exec time...

  Yes, even /bin/sh is probably better than /usr/bin/env + another
indirection.


> The idea of the minimal static-linked binary as a solution is that it
> would not need a program interpreter (dynamic linker or #! type) but
> instead could do its own search (e.g. relative to its own binary) for
> the dynamic linker to invoke.

  It's certainly the most efficient solution for any given binary, but
it's less scalable - as in easy to maintain - than a script-based solution.

-- 
  Laurent



      reply	other threads:[~2014-04-06 20:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-01 14:11 John Mudd
2014-04-01 16:19 ` u-igbb
2014-04-01 16:21   ` Justin Cormack
2014-04-01 16:27 ` writeonce
2014-04-01 16:40 ` Rich Felker
2014-04-06 14:38 ` John Mudd
2014-04-06 16:18   ` Rich Felker
2014-04-06 17:17     ` Laurent Bercot
2014-04-06 17:22       ` Rich Felker
2014-04-06 20:27         ` Laurent Bercot [this message]

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=5341B89E.6060800@skarnet.org \
    --to=ska-dietlibc@skarnet.org \
    --cc=musl@lists.openwall.com \
    /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 public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).