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: system call interposition using LD_PRELOAD


Hi Godmar,

Godmar Back wrote:

> He tells me that for several years now, this is no longer possible with GNU
> libc because functions such as fopen() do not dynamically link against the
> stubs, but rather a local PLT is used. He also claims some system call
> sequences are even inlined in parts of the libc code.
>
> He is now considering changing libc, but finds that its design does not lend
> itself easily to doing that.
>
> If this is true, what is the new state of the practice with respect to
> system call interposition?

Use ptrace(2).

Hope that helps,
Jonathan


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