[Python-Dev] Pondering some changes to python.c... (original) (raw)

Sean Reifschneider jafo@tummy.com
Sun, 7 Apr 2002 21:54:10 -0600


On Sun, Apr 07, 2002 at 12:26:01PM -0400, Barry A. Warsaw wrote:

AK> You might want to be careful about LDLIBRARYPATH -- if the AK> executable is built for dynamic linking, and it needs a AK> library that's not in /usr/lib, mightn't changing AK> LDLIBRARYPATH cause it to fail?

It might indeed, although some *nixes have ways for the sysadmin to safely extend the default lookup path (i.e. /etc/ld.so.conf and ldconfig).

If you can't clear LD_*, you probably can't safely run it as SUID. That'd be my inclination...

Sean

"Yes on one, no on two." "Is number one nuke Russia, or number two?" -- Buckaroo_Banzai Sean Reifschneider, Inimitably Superfluous <jafo@tummy.com> tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python