This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Intercepting syscalls in glibc example


On Monday 09 February 2009 23:10:40 Tom Kraljevic wrote:
> Goal:  On an ubuntu system (release "hardy"), modify and build a glibc
> which intercepts syscalls.
>
> This example hijacks the write syscall and adds a proxy layer which
> allows the user to compute statistics, etc.  In my particular example,
> I am statically linking the program.

seems like a lot of effort for not a whole lot of gain.  why not use ptrace() 
instead ?  then you could do the same exact thing without requiring any glibc 
modification.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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