Architecture dependent.
For the 4.3-stable code for i386, /usr/src/sys/i386/i386/trap.c contains the 
function syscall2().

I believe you can safely put your code in it before the dispatching system 
call part, just be aware of kernel stack overflow.

Weiguang

>From: Evan Sarmiento <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: hooks
>Date: Thu, 26 Jul 2001 01:10:02 +0000 (GMT)
>
>Hello,
>
>I need each system call to check with a master table of restrictions before 
>executing a function.
>Is there a way to do this without copying and pasting a bit of code that 
>does this checking into
>every system call?
>
>Thanks,
>
>
>--
>-----------------------------------
>Evan Sarmiento | www.open-root.org
>[EMAIL PROTECTED]  | www.sekt7.org/~ems/
>-----------------------------------
>
>
>To Unsubscribe: send mail to [EMAIL PROTECTED]
>with "unsubscribe freebsd-hackers" in the body of the message


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
  • hooks Evan Sarmiento
    • Weiguang SHI

Reply via email to