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: About hacking libc


On 06/17/2013 04:48 PM, Xinyang Ge wrote:
> On Mon, Jun 17, 2013 at 4:15 PM, Carlos O'Donell <carlos@redhat.com> wrote:
>> Then you need to instrument the open system call entry point
>> from userspace. I would suggest adding a framework to instrument
>> the system calls from the glibc side, perhaps using systemtap
>> probe points (like we already do for the dynamic loader).
>>
>> That way you can use systemtap userspace probe points to
>> intercept all open syscalls made by a program, manipulate
>> the arguments and then continue. You can do this on a per-thread
>> basis without halting the entire process and the other threads.
>> You can also do this very efficiently.
>>
>> Cheers,
>> Carlos.
>>
> 
> Thanks. I'll take a look.

FYI:

"System Call Wrappers"
http://sourceware.org/glibc/wiki/SyscallWrappers

Cheers,
Carlos.


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