public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Fergus Dall <sidereal@google.com>
To: Fergus Dall via Libc-alpha <libc-alpha@sourceware.org>
Cc: chromeos-toolchain@google.com, clumptini <clumptini@google.com>,
	 Mike Frysinger <vapier@google.com>
Subject: [PATCH v3 1/2] rtld: Add --no-default-paths option
Date: Mon, 7 Jun 2021 20:28:19 +1000	[thread overview]
Message-ID: <CAAjxMxeoMHuOQJ1K95pBfby_egSWM0w717O5b_nw73-kAqyfKA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]

gnu formatting fixes have been applied to the test files, and the SONAMEs
for libc and libdl now use <gnu/lib-names.h>

-- 8< --
This option causes the default library search path to be skipped,
using only the paths in DT_RPATH, LD_LIBRARY_PATH, and
DT_RUNPATH. This option implies --inhibit-cache, as there is no point
in searching a cache of system libraries when we are not using the
system libraries at all.

This is necessary to preserve negative search results when isolating
applications from the system libraries. This can be important when an
application uses dlopen at run time to load optional libraries.

When a shared library is required by the application, it can be
isolated by putting appropriate versions of the libraries in
directories specified in LD_LIBRARY_PATH, because the library search
will always terminate before potentially loading any system libraries.

On the other hand, if the application should be run without an
optional library, the search will proceed past the LD_LIBRARY_PATH
directories into the default system libraries, potentially causing an
incorrect library to be linked.

[-- Attachment #2: v3-0001-rtld-Add-no-default-paths-option.patch --]
[-- Type: application/x-patch, Size: 5604 bytes --]

         reply	other threads:[~2021-06-07 10:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-25  2:25 [PATCH] " Fergus Dall
2021-05-25  3:22 ` Mike Frysinger
2021-05-25 12:01   ` Carlos O'Donell
2021-05-26  8:10     ` Fergus Dall
2021-05-25 17:34 ` Joseph Myers
2021-06-07 10:28 ` Fergus Dall [this message]
2021-06-09  5:43   ` [PATCH v3 1/2] " Mike Frysinger

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=CAAjxMxeoMHuOQJ1K95pBfby_egSWM0w717O5b_nw73-kAqyfKA@mail.gmail.com \
    --to=sidereal@google.com \
    --cc=chromeos-toolchain@google.com \
    --cc=clumptini@google.com \
    --cc=libc-alpha@sourceware.org \
    --cc=vapier@google.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).