linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Intercepting system calls
@ 2004-12-21  4:22 selvakumar nagendran
  2004-12-21  4:28 ` Lee Revell
  2004-12-21 13:51 ` Steven Rostedt
  0 siblings, 2 replies; 37+ messages in thread
From: selvakumar nagendran @ 2004-12-21  4:22 UTC (permalink / raw)
  To: linux-kernel

    I want to intercept system calls that are provided
for IPC in Linux. I have to determine whether a
process blocks while executing a system call and I
must save the arguments passed to that system call.
    Can I modify the system call source code directly
for this? or if I want the system calls to refer my
module, how should I do that? can anyone explain for
this, if possible with some code?..

Thanks,
selva


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


^ permalink raw reply	[flat|nested] 37+ messages in thread
* Intercepting system calls
@ 2010-02-04 19:00 Oleg Kutkov
  2010-02-04 19:26 ` Bryan Donlan
  0 siblings, 1 reply; 37+ messages in thread
From: Oleg Kutkov @ 2010-02-04 19:00 UTC (permalink / raw)
  To: linux-kernel

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.

^ permalink raw reply	[flat|nested] 37+ messages in thread
* Intercepting system calls
@ 2011-12-22 16:07 Gaurav Saxena
  2011-12-22 16:42 ` richard -rw- weinberger
                   ` (2 more replies)
  0 siblings, 3 replies; 37+ messages in thread
From: Gaurav Saxena @ 2011-12-22 16:07 UTC (permalink / raw)
  To: linux-kernel

Hello all,

I am writing an application for which I need to intercept some
filesystem system calls eg. unlink. I need unlink to call my code
before deleting abc so that I could probably prevent unlink . I would
like to implement this in a kernel module instead of modifying kernel
code itself. I would like to intercept system calls by replacing
system calls but I have not been able to find any method of doing that
in linux > 3.0. Please suggest some method of doing that.


--
Thanks and Regards ,
Gaurav

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2011-12-29  6:38 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21  4:22 Intercepting system calls selvakumar nagendran
2004-12-21  4:28 ` Lee Revell
2004-12-21 13:51 ` Steven Rostedt
  -- strict thread matches above, loose matches on Subject: below --
2010-02-04 19:00 Oleg Kutkov
2010-02-04 19:26 ` Bryan Donlan
     [not found]   ` <5e9821061002042140le7ba356s48e535c9d8b637ec@mail.gmail.com>
2010-02-05  7:20     ` Bryan Donlan
2011-12-22 16:07 Gaurav Saxena
2011-12-22 16:42 ` richard -rw- weinberger
2011-12-22 16:59   ` Gaurav Saxena
2011-12-22 17:05     ` richard -rw- weinberger
2011-12-22 17:16       ` Gaurav Saxena
2011-12-22 17:32         ` richard -rw- weinberger
2011-12-22 17:37           ` Gaurav Saxena
2011-12-22 17:52     ` John Stoffel
2011-12-23  2:22       ` Gaurav Saxena
2011-12-23 14:38         ` John Stoffel
2011-12-23 17:03           ` Gaurav Saxena
2011-12-28 12:56             ` Wojciech Zygmunt Porczyk
2011-12-29  6:38               ` Gaurav Saxena
2011-12-23 14:50       ` Alan Cox
2011-12-23 17:07         ` Gaurav Saxena
2011-12-22 19:03     ` Wakko Warner
2011-12-23  2:25       ` Gaurav Saxena
2011-12-23  9:45       ` Jiri Kosina
2011-12-23 15:10         ` Wakko Warner
2011-12-23  7:25 ` J. R. Okajima
2011-12-23  9:08   ` Gaurav Saxena
2011-12-23  9:16     ` richard -rw- weinberger
2011-12-23  9:22       ` Gaurav Saxena
2011-12-23  9:26         ` richard -rw- weinberger
2011-12-23  9:37           ` Gaurav Saxena
2011-12-23  9:47 ` Jiri Kosina
2011-12-23  9:50   ` Gaurav Saxena
2011-12-23 11:59     ` Gaurav Saxena
2011-12-23 12:29       ` Maxin B John
2011-12-23 12:50         ` Gaurav Saxena
2011-12-23 13:00           ` richard -rw- weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).