Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2001 19:35:45 -0600
From:      "Weiguang SHI" <weiguang_shi@hotmail.com>
To:        ems@open-root.org, freebsd-hackers@freebsd.org
Subject:   Re: hooks
Message-ID:  <F72zDabigPasSmz6UuE000050a5@hotmail.com>

next in thread | raw e-mail | index | archive | help
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 <ems@open-root.org>
>To: freebsd-hackers@freebsd.org
>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
>ems@sekt7.org  | www.sekt7.org/~ems/
>-----------------------------------
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F72zDabigPasSmz6UuE000050a5>