From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 24 14:20:25 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5DF6816A4F3 for ; Wed, 24 Jan 2007 14:20:25 +0000 (UTC) (envelope-from eilander@paranoid.nl) Received: from smtpq1.groni1.gr.home.nl (smtpq1.groni1.gr.home.nl [213.51.130.200]) by mx1.freebsd.org (Postfix) with ESMTP id C4FEE13C505 for ; Wed, 24 Jan 2007 14:20:22 +0000 (UTC) (envelope-from eilander@paranoid.nl) Received: from [213.51.130.189] (port=60074 helo=smtp2.groni1.gr.home.nl) by smtpq1.groni1.gr.home.nl with esmtp (Exim 4.30) id 1H9ikn-00038F-Sg; Wed, 24 Jan 2007 15:05:33 +0100 Received: from cp26621-a.gelen1.lb.home.nl ([84.28.158.27]:1385 helo=workstation) by smtp2.groni1.gr.home.nl with esmtp (Exim 4.30) id 1H9if2-0002P7-Jg; Wed, 24 Jan 2007 14:59:36 +0100 From: "Thijs Eilander" To: "'Andrew N. Below'" , Date: Wed, 24 Jan 2007 15:03:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: Thread-Index: Acc/uwpxKsFlUa+fSOOKSfDAS7tzagABFb4A X-AtHome-MailScanner-Information: Neem contact op met support@home.nl voor meer informatie X-AtHome-MailScanner: Found to be clean Message-Id: <20070124142022.C4FEE13C505@mx1.freebsd.org> Cc: Subject: RE: how to deny reading of several sysctls (for a set of uids, f.e.) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 14:20:25 -0000 > Is there a documented possibility to use syscalls _inside_ > kernel code? > In other words, I need to call the function located in > loadable kernel object from kernel, doesn't matter how > this would be done (syscall, etc). Hi Andrew, You can redirect syscalls to another function with loadable kernel modules. Some documentation/examples you might want to read first: /usr/share/examples/kld http://www.r4k.net/mod/fbsdfun.html http://packetstormsecurity.org/papers/unix/bsdkern.htm http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics- kld.html With best regards, Thijs Eilander