From: Szabolcs Nagy <nsz@port70.net>
To: "Stefan Fröberg" <stefan.froberg@petroprogram.com>
Cc: musl@lists.openwall.com
Subject: Re: BUG: $ORIGIN does not seem to work
Date: Sun, 28 Jan 2018 01:54:25 +0100 [thread overview]
Message-ID: <20180128005425.GK4418@port70.net> (raw)
In-Reply-To: <f8f24145-cfde-4358-bc6b-7b79a1e8f142@petroprogram.com>
* Stefan Fröberg <stefan.froberg@petroprogram.com> [2018-01-28 00:07:33 +0200]:
> strace ./x
...
> open("/root/batman/lib/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3
...
> ldd x
> /lib/ld-musl-x86_64.so.1 (0x7f22efa03000)
> libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x7f22ef352000)
> libc.so => /lib/ld-musl-x86_64.so.1 (0x7f22efa03000)
this is a bug in musl ldd: if the executable
path has no / then it assumes origin is /, try
ldd ./x
then origin is ./ so it works as expected.
next prev parent reply other threads:[~2018-01-28 0:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-26 13:39 Stefan Fröberg
2018-01-26 14:21 ` Szabolcs Nagy
2018-01-26 23:50 ` Stefan Fröberg
2018-01-27 11:07 ` Szabolcs Nagy
2018-01-27 16:20 ` Stefan Fröberg
2018-01-27 16:42 ` Rich Felker
2018-01-27 17:14 ` Stefan Fröberg
2018-01-27 19:26 ` Szabolcs Nagy
2018-01-27 22:07 ` Stefan Fröberg
2018-01-28 0:54 ` Szabolcs Nagy [this message]
2018-02-07 17:35 ` Rich Felker
2018-02-07 20:28 ` Szabolcs Nagy
2018-01-26 16:34 ` Rich Felker
2018-01-26 21:28 ` Stefan Fröberg
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=20180128005425.GK4418@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
--cc=stefan.froberg@petroprogram.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).