From owner-freebsd-current Thu Apr 3 16:36:40 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA00592 for current-outgoing; Thu, 3 Apr 1997 16:36:40 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA00586 for ; Thu, 3 Apr 1997 16:36:37 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.8.5/8.6.5) with SMTP id QAA05861; Thu, 3 Apr 1997 16:36:50 -0800 (PST) Message-Id: <199704040036.QAA05861@root.com> X-Authentication-Warning: implode.root.com: localhost [127.0.0.1] didn't use HELO protocol To: Terry Lambert cc: current@FreeBSD.ORG Subject: Re: DISCUSS: system open file table In-reply-to: Your message of "Thu, 03 Apr 1997 16:28:39 MST." <199704032328.QAA17735@phaeton.artisoft.com> From: David Greenman Reply-To: dg@root.com Date: Thu, 03 Apr 1997 16:36:50 -0800 Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >4) Any other kernel file I/O operations which rely > on stored credentials established at file open(*). > > (*) The descriptor f_type and f_ops field are not > relevent arguments in favor of this, since they > are cruft which should be diked out. It's already trivially easy to do file I/O in the kernel without a file descriptor. As you know, a "file descriptor" in FreeBSD is only a mechanism to translate a per-process file handle to a kernel vnode. For this reason, the very notion of a "file descriptor" is only relevant in the context of a process. It sounds like #4 is the main thing you're after, but I fail to see how this is relevant unless you have a process context in which to do the I/O, and in that case you already have easy access to the process' credentials. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project