prepare support for LD_LIBRARY_PATH (checking suid/sgid safety)
authorRich Felker <dalias@aerifal.cx>
Fri, 24 Jun 2011 02:04:06 +0000 (22:04 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 24 Jun 2011 02:04:06 +0000 (22:04 -0400)
commitb7f6e0c6f848b7a8c64b3f7b72014b48a9923729
tree7529d059082ddaecc0fcc23222cdd6699533b197
parentc7ce1b20d2f37f97f9cfcd57cb4fb4c7cd66a3a0
prepare support for LD_LIBRARY_PATH (checking suid/sgid safety)

the use of this test will be much stricter than glibc and other
typical implementations; the environment will not be honored
whatsoever unless the program is confirmed non-suid/sgid by the aux
vector the kernel passed in. no fallback to slow syscall-based
checking is used if the kernel fails to provide the information; we
simply assume the worst (suid) in this case and refuse to honor
environment.
src/ldso/dynlink.c