From owner-freebsd-current Fri Sep 4 10:20:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA23574 for freebsd-current-outgoing; Fri, 4 Sep 1998 10:20:08 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from fledge.watson.org (COPLAND.CODA.CS.CMU.EDU [128.2.222.48]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA23556 for ; Fri, 4 Sep 1998 10:20:02 -0700 (PDT) (envelope-from robert@cyrus.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.8.8/8.8.8) with SMTP id NAA17607 for ; Fri, 4 Sep 1998 13:18:46 -0400 (EDT) Date: Fri, 4 Sep 1998 13:18:45 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org Reply-To: Robert Watson To: freebsd-current@FreeBSD.ORG Subject: lkm hooks for passing (blah) via file descriptors Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As part of my research work on adding authentication/authorization tokens to the FreeBSD kernel, I have two sets of patches that have been useful for me under 3.0-CURRENT: 1. Patches to kern/uipc_socket.c (and others) to allow lkm's to hook three spots in the arbitrary kernel-stuff passing code -- internalize(), externalize() and gc(). This also involved cleaning up the file descriptor passing code a little, etc. This code appears to run fine on all the machines I have tested it on. 2. Adding a p_auth pointer in the proc structure (zero'd at fork for the new process, although at_fork() lkm's can modify it immediately after the fork, and based on the parent value) for hooking arbitrary authentication or authorization information into the proc structure. Would any of these patches be of interest for 3.0-CURRENT? The first patch is something that I find useful, but that might not be so useful for others. The second might be of more general use; especially if we stick want to stick in posix capabilities via an optional lkm (a likely first implementation -- I am ordering posix .6 this afternoon). Robert N Watson Carnegie Mellon University http://www.cmu.edu/ TIS Labs at Network Associates, Inc. http://www.tis.com/ SafePort Network Services http://www.safeport.com/ robert@fledge.watson.org http://www.watson.org/~robert/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message