Date: Fri, 4 Sep 1998 13:18:45 -0400 (EDT) From: Robert Watson <robert@cyrus.watson.org> To: freebsd-current@FreeBSD.ORG Subject: lkm hooks for passing (blah) via file descriptors Message-ID: <Pine.BSF.3.96.980904131345.17220B-100000@fledge.watson.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980904131345.17220B-100000>