|
|
Message-ID: <alpine.LNX.2.00.1403281622350.18475@monopod.intra.ispras.ru>
Date: Fri, 28 Mar 2014 16:27:05 +0400 (MSK)
From: Alexander Monakov <amonakov@...ras.ru>
To: musl@...ts.openwall.com
Subject: Re: be able to break inheritance of LD_LIBRARY_PATH
Instead of patching the dynamic loader, you can supply an LD_PRELOAD module
that would remove/modify LD_LIBRARY_PATH appropriately at startup:
#include <stdlib.h>
void __attribute__((constructor))
remove_ld_l_p(void)
{
unsetenv("LD_LIBRARY_PATH");
unsetenv("LD_PRELOAD");
}
HTH.
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.