system calls - socket syscall on linux x86_32 -


i trying hook socket system call on linux x86_32. system call not exist gated through socketcall.

man socketcall: socketcall() common kernel entry point socket system calls. call determines socket function invoke. args points block containing actual arguments, passed through appropriate call.

i hooked syscall (__nr_socketcall 102 on system stated on http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html) own function prints , calls original function afterwards. however, function never called. furthermore, strace shows socket() syscall called.

the basic question: how can hook socket syscalls on linux x86_32?

subquestion: why strace show socket() syscall , not socketcall()?

everything works expected on x86_64 socket syscall exists.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -