Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 28 Jan 2018 01:54:25 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: Stefan Fröberg <stefan.froberg@...roprogram.com>
Cc: musl@...ts.openwall.com
Subject: Re: BUG: $ORIGIN does not seem to work

* Stefan Fröberg <stefan.froberg@...roprogram.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.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.