Re: LD_LIBRARY_PATH unset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux