From owner-freebsd-arch Fri Nov 2 15:40:14 2001 Delivered-To: freebsd-arch@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id B850437B40F; Fri, 2 Nov 2001 15:40:10 -0800 (PST) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA48117; Fri, 2 Nov 2001 15:35:39 -0800 (PST) Date: Fri, 2 Nov 2001 15:35:37 -0800 (PST) From: Julian Elischer To: Robert Watson Cc: John Baldwin , Garance A Drosihn , arch@FreeBSD.org, Kelly Yancey Subject: Re: Changes to suser() and friends In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 2 Nov 2001, Robert Watson wrote: > Just FYI, it looks like a number of other platforms also use struct ucred > * as their primary suser() argument, including OpenBSD. Shared drivers > appear to tend to have __FreeBSD__ ifdef's scattered around as a result. > > Also an FYI, we have countless places where a struct td * isn't passed > down, and suser() currently relies on curproc. Once we have td->td_ucred > ready, we'll need to fix all those, and more universally pass around the > td of choice. That was what I was saying earlier, but it is sometimes not obvious which thread should be passed... > > Robert N M Watson FreeBSD Core Team, TrustedBSD Project > robert@fledge.watson.org NAI Labs, Safeport Network Services > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message