Unix Programming - Re: overriding functions with functions that call the original

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2006 > Re: overriding functions with functions that call the original





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: overriding functions with functions that call the original
Paul Pluzhnikov

2006-03-21, 5:56 pm

phil-news-nospam@ipal.net writes:

> But how does one make use of RTLD_NEXT to do the interposing on the
> platforms that don't have LD_PRELOAD?


RTLD_NEXT helps you find the next definition to call.

If you don't have LD_PRELOAD (or equivalent), you can't do
interpositioning by defintion [1], and RTLD_NEXT doesn't help you any.

Cheers,

[1]
You can't do interpositioning on unmodified exe.
You could still interposition by relinking the exe (and RTLD_NEXT
will help you find the next function to call), or by calling your
interposer libc.so and making the exe find your interposer instead
of the system libc.so
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com