Also LD_LIBRARY_PATH in general works here:
root@g:~# export LD_LIBRARY_PATH=/mnt/test/; lddtree /usr/sbin/automount;
automount => /usr/sbin/automount (interpreter => /lib64/ld-linux-x86-64.so.2)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2
libxml2.so.2 => /mnt/test/libxml2.so.2
libicuuc.so.67 => /lib/x86_64-linux-gnu/libicuuc.so.67
libicudata.so.67 => /lib/x86_64-linux-gnu/libicudata.so.67
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
Might it be that you you need a different library to insert here?
Also the code has a bunch of dlopen calls
daemon/module.c:87: if (!(dh = dlopen(fnbuf, RTLD_NOW))) {
daemon/module.c:165: if (!(dh = dlopen(fnbuf, RTLD_NOW))) {
daemon/module.c:241: if (!(dh = dlopen(fnbuf, RTLD_NOW))) {
daemon/automount.c:2386: void *dh_xml2 = dlopen("libxml2.so", RTLD_NOW);
daemon/automount.c:2388: dh_xml2 = dlopen("libxml2.so.2",
RTLD_NOW);
daemon/automount.c:2393: void *dh_tirpc = dlopen("libtirpc.so",
RTLD_NOW);
daemon/automount.c:2395: dh_tirpc = dlopen("libtirpc.so.1",
RTLD_NOW);
modules/lookup_sss.c:95: dh = dlopen(dlbuf, RTLD_LAZY);
Those might behave differently - are you after those or after the
"normal" ld.so activity you see in the lddtree output above?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1891551
Title:
(Ubuntu 16.04) automount 5.1.1 hardcoding libraries
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1891551/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs