cvs commit: src/libexec/rtld-elf libmap.c libmap.h rtld.1 rtld.c

Matthew N. Dodd mdodd at FreeBSD.ORG
Fri Feb 4 06:27:17 PST 2005


On Fri, 4 Feb 2005, Alexander Leidinger wrote:
> "Matthew N. Dodd" <mdodd at freebsd.org> wrote:
>
>>           Another handy libmap patch.  Lets you do stuff like this:
>> 
>>           LD_LIBMAP="libpthread.so.1=libthr.so.1" mythreadedapp
>
> Even for SUID programs where this feature may be abused to do nasty things?

     trust = !issetugid();
...
     if (trust) {
...
         libmap_override = getenv(LD_ "LIBMAP");
...

So no, no more open to abuse than LD_PRELOAD etc.

-- 
10 40 80 C0 00 FF FF FF FF C0 00 00 00 00 10 AA AA 03 00 00 00 08 00


More information about the cvs-src mailing list