Skip to contentSkip to conversation

Intercepting system calls in Linux kernel 2.6.x

DISCUSSION selvakumar nagendran 3 participants 4 messages Dec 24, 2004

lore
Share & tools
lore
#0 lore raw

In linux kernel 2.6.x, what should we do to intercept
system calls? When I used sys_call_table from a module, it returned the following error 'undefined variable sys_call_table'. What is the way to export system call table in kernel 2.6.x?

Thanks,
selva

__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

#1 lore raw
Quoted 5 lines · selvakumar nagendran

In linux kernel 2.6.x, what should we do to intercept
system calls? When I used sys_call_table from a module, it returned the following error 'undefined variable sys_call_table'. What is the way to export system call table in kernel 2.6.x?

That's generally very deprecated.

What problem are you trying to solve by intercepting system calls? There may very well be some other way to achieve what you're trying to do...

#2 lore raw

Hello,
I want to save the system call parameters in a
table. I want to do this from the kernel module. For that, I want to replace the already existing system call handler by my own. Are there any other mechanisms for doing this without exporting system call table? If it is then plz suggest any one of them?

Thanks,
selva

Quoted 12 lines · --- [email protected] wrote:
Quoted 1 line · selvakumar nagendran

In linux kernel 2.6.x, what should we do to

intercept

Quoted 3 lines

system calls? When I used sys_call_table from a module, it returned the following error 'undefined variable sys_call_table'. What is the way to

export

Quoted 1 line

system call table in kernel 2.6.x?

That's generally very deprecated.

Quoted 7 lines

What problem are you trying to solve by intercepting system calls? There
may very well be some other way to achieve what you're trying to do...

ATTACHMENT part 2 application/pgp-signature

__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

#3 lore raw
Quoted 7 lines · selvakumar nagendran

Hello,
I want to save the system call parameters in a
table. I want to do this from the kernel module. For that, I want to replace the already existing system call handler by my own. Are there any other mechanisms for doing this without exporting system call table? If it is then plz suggest any one of them?

ewww

if you do this for auditing purposes... who not use the auditing subsystem that is already there ?