This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

LD_LIBRARY_PATH/LD_RUN_PATH


Hi All,

When I turnon setuid bit for an application then
LD_LIBRARY_PATH/LD_RUN_PATH are not used to search shared library.

For example:

$ id
uid=15(ebadmin) gid=17(eb) groups=17(eb)

$ ls -l myfind myfind.root:eb
-r-sr-xr-x    1 root     eb         381461 Oct 31 16:33 myfind
-r-xr-xr-x    1 root     eb         381461 Nov  1 14:15 myfind.root:eb

$ ldd myfind
        /lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x40018000)
        libstdc++.so.2.8 => not found
        libc.so.6 => /lib/libc.so.6 (0x40021000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

$ ldd myfind.root:eb
        /lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x40018000)
        libstdc++.so.2.8 => /home/bala/libstdc++.so.2.8 (0x4001a000)
        libc.so.6 => /lib/libc.so.6 (0x40062000)
        libm.so.6 => /lib/libm.so.6 (0x40187000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
 
$ env |grep LD  
LD_RUN_PATH=/home/bala
LD_LIBRARY_PATH=/home/bala
$

Any idea why these environment variables are not valid with group
set-UID bit?

Thanks
Bala


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]