[so] Interceptare functii glibc - Linux

Octavian Purdila so@cursuri.cs.pub.ro
Sat, 20 Nov 2004 16:25:13 +0200


On Saturday 20 November 2004 14:17, Bogdan Luca wrote:

> Cred ca e mai simplu sa folosim dlsym(RTLD_NEXT, "read"/"write"), dupa
> cum zice pagina de manual a dlsym: "There are two special
> pseudo-handles, RTLD_DEFAULT and RTLD_NEXT.  The former will find the
> first occurrence of the desired symbol using the default library search
> order. The latter will find the next occurrence of  a  function  in the
>   search  order  after  the  current library.  This allows one to
> provide a wrapper around a function in another shared library.".
>
> E vreo problema daca folosim metoda asta?
>

Nu, e chiar mai bine, pentru ca in felul asta interceptarea devine scalabila.

tavi