From owner-freebsd-hackers Wed Jul 25 18:35:48 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f72.pav2.hotmail.com [64.4.37.72]) by hub.freebsd.org (Postfix) with ESMTP id E449E37B401 for ; Wed, 25 Jul 2001 18:35:45 -0700 (PDT) (envelope-from weiguang_shi@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 25 Jul 2001 18:35:45 -0700 Received: from 129.128.29.128 by pv2fd.pav2.hotmail.msn.com with HTTP; Thu, 26 Jul 2001 01:35:45 GMT X-Originating-IP: [129.128.29.128] From: "Weiguang SHI" To: ems@open-root.org, freebsd-hackers@freebsd.org Subject: Re: hooks Date: Wed, 25 Jul 2001 19:35:45 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 26 Jul 2001 01:35:45.0656 (UTC) FILETIME=[4A63C780:01C11573] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 >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