Skip to contentSkip to conversation

Intercepting system calls

DISCUSSION Oleg Kutkov 2 participants 3 messages Feb 4, 2010 – Feb 5, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello.
Maybe this question is often, but all post i found is too old and some things is wrong... So, i need to intercept some system calls (socket calls) and make my own handler. Is there legal, correct and clean way to do it, without hacking system call table ? Thank.

Best regards,
Oleg.

#1 lore raw
Quoted 8 lines · Oleg Kutkov

Hello.
Maybe this question is often, but all post i found is too old and some things is wrong...
So, i need to intercept some system calls (socket calls) and make my own handler.
Is there legal, correct and clean way to do it, without hacking system call table ?
Thank.

Why do you need to do this? There may be a better way than overriding syscalls.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

2010/2/5 Oleg Kutkov <[email protected]>:

Quoted 3 lines

Hello. l need to capture and process outgoing and incoming packets from all network interfaces, include virtual interfaces. So I try to overload socket and if_rx. I'm not found another way to do that.

Why not just use libpcap?