Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8a44a6ea-9cde-f2ef-a691-79e134c3b1d3@ispras.ru>
Date: Wed, 1 Oct 2025 10:44:38 +0300 (MSK)
From: Alexander Monakov <amonakov@...ras.ru>
To: musl@...ts.openwall.com
Subject: Re: `unsetenv()` does not always work when run in an
 `__attribute__((constructor))` function


On Tue, 30 Sep 2025, Mike Hilgendorf wrote:

> cd bash-5.2.37
> export CC=musl-gcc
> ./configure
> make
> 
> env -i LD_PRELOAD=path/to/preload.so ./bash

Try

nm -D ./bash | grep env

If you see 'T' symbols, bash exports its own env functions, and your LD_PRELOAD
module invokes the implementations from bash, not libc.

Alexander

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.