Re: LD_LIBRARY_PATH unset

Mark Heslep <[email protected]> Wed, 16 Aug 2006 16:56:19 -0400
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
Steven W. Orr wrote:
> =>Comments?
>
> LD_LIBRARY_PATH overrides ld.so.conf unless if the program being run is 
> run by root or if the program is setuid to root. In those cases, the 
> variable is ignored. This is for obvious security reasons. The ld.so.conf 
> setup is observed regardless of what user you are. The idea is that the 
> content of ld.so.conf is set by someone who is root and so is basically 
> declaring the entries in that file to be "trusted directories". Note that 
> /lib and /usr/lib are not in ld.so.conf at all since they are pre-presumed 
> to be trusted.
>
> On Wednesday, Aug 16th 2006 at 12:59 -0400, quoth Mark Heslep:
>
> =>Note that recommendation requires working as root.
>
> Exactly my point. See above :-)
>
>   
That makes sense for system wide execution of applications but not for 
development. In that case you likely want to use a local library path 
named by LD..PATH and not impose it on the entire system.