oss-security September 2010 archive
Main Archive Page > Month Archives  > oss-security archives
oss-security: [oss-security] RFC: changing the behaviour of ld.s

[oss-security] RFC: changing the behaviour of ld.so(8) regarding empty items on LD_LIBRARY_PATH

From: Raphael Geissert <geissert_at_nospam>
Date: Tue Sep 28 2010 - 23:42:05 GMT
To: oss-security@lists.openwall.com

Hi everyone,

I have talked to one of the eglibc Debian maintainers about making ld.so
ignore empty items on LD_LIBRARY_PATH instead of treating them as '.', and
he doesn't have any objection.

Although this is a behaviour change, I do not think there is any real case
where an empty item was added in purpose (I even have yet to see one that
uses '.'.)
We are therefore considering making this change starting with our next
stable release.

What do the others think about it? do you think you would follow that change

This change has been proposed by some people multiple times along the years,
yet nothing has changed (not even properly discussed, I believe.) Has this
change ever been proposed to glibc upstream? (maybe the RedHat people can
help with this.)

There is a similar issue with $PATH, but we have no plans for it so far
(execvp(8) claims ":/bin:/usr/bin" is the default if $PATH is unset, in some

-- Raphael Geissert - Debian Developer www.debian.org - get.debian.net