Why does the LD_LIBRARY_PATH variable get cleared for setuid/setgid binaries in Red Hat Enterprise Linux?

Updated -

LD_LIBRARY_PATH behavior

  • LD_LIBRARY_PATH is an environment variable to give the run-time shared library loader (ld.so) an extra set of directories to look for when searching for shared libraries. It is used in preference to any run time or default system linker path.
  • Multiple directories can be listed and separated with a colon [:] . This list is prepended to ...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content