TUCoPS :: Linux :: Apps A-M :: b06-5147.htm

libtool-ltdl uses relative paths to resolve and load libraries
libtool-ltdl uses relative paths to resolve and load libraries
libtool-ltdl uses relative paths to resolve and load libraries



--=-=-Content-Transfer-Encoding: quoted-printable

Hello,

Fedora Core 5 ships the libtool-ltdl library which is used to load
dynamic modules. This package seems to be built with some strange setup
causing a search path of

| $ strings /usr/lib/libltdl.so
| /lib:/usr/lib:hwcap:0:nosegneg:/usr/lib/mysql:/usr/lib/mysql:/usr/lib/mysql:/usr/lib/qt-3.3/lib

Effect is, that dynamic libraries are searched in three relative paths
('hwcap', '0' and 'nosegneg') and loaded from there:

| $ echo 'int main() { lt_dlinit(); lt_dlopenext("foo"); }' > foo.c
| $ gcc foo.c -lltdl
| # strace ./a.out 
| open("/lib/foo.la", O_RDONLY)           = -1 ENOENT (No such file or directory)
| open("/usr/lib/foo.la", O_RDONLY)       = -1 ENOENT (No such file or directory)
| open("hwcap/foo.la", O_RDONLY)          = -1 ENOENT (No such file or directory)
| open("0/foo.la", O_RDONLY)              = -1 ENOENT (No such file or directory)
| open("nosegneg/foo.la", O_RDONLY)       = 3
| ...
| open("/tmp/test/bin/nosegneg/foo.so", O_RDONLY) = 3


Mentioned paths are used also in /usr/bin/libtool:

| $ grep nosegneg /usr/bin/libtool
| sys_lib_dlsearch_path_spec="/lib /usr/lib hwcap 0 nosegneg /usr/lib/mysql /usr/lib/mysql /usr/lib/mysql /usr/lib/qt-3.3/lib "

but effect is unknown.



Impact:
   low till medium

Affected:
   Fedora Core 5 Updates (libtool-ltdl-1.5.22-2.3)

Not Affected:
   Fedora Core 5 (libtool-ltdl-1.5.22-2.2)
   Fedora Core Devel

Vendor was notified at 2006-10-08
   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=209930




Enrico

--=-=-Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQEVAwUARSvtHTyfXseeoEz2AQoddQgAog4SntPaVUZo33YN3JNZjGuba+N5Q2+5
3GhSrR7ogFQXFAZGd5ikDuedeNzF5F/sTSRcJWaZpG/LxYhRr3P+ssKaJs7QN5hM
Ge/U5asEb+875Cz99NQv3fb7TzQy/tGE+6hp7Xc3UG/iYmkMZ/idTgtZXZmUjH14
Qm9EeS4Kb0CC9OXmToFwoGV46BXKAz6FRLB5pEJYCH35HRksqtbvpXEn7XH9jYw/
qeaZcbmfj/XKIdGs68DMS38mZfU7wZpr45bfXeX0ufqqa589hJ6i5w3eUkMWecS5
YsXiwpOLzZTG140ugzHDw+ktS9oKOHlXy7NolufMzkWfXgRWe1/MVw==27Gb
-----END PGP SIGNATURE-----
--=-=-=--

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH