From owner-freebsd-current Tue Feb 4 0:33:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FB3537B401; Tue, 4 Feb 2003 00:33:43 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B49AE43F43; Tue, 4 Feb 2003 00:33:42 -0800 (PST) (envelope-from ilmar@watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.6/8.12.5) with ESMTP id h148XXP3009481; Tue, 4 Feb 2003 03:33:33 -0500 (EST) (envelope-from ilmar@watson.org) Received: from localhost (ilmar@localhost) by fledge.watson.org (8.12.6/8.12.6/Submit) with ESMTP id h148XXKp009478; Tue, 4 Feb 2003 03:33:33 -0500 (EST) X-Authentication-Warning: fledge.watson.org: ilmar owned process doing -bs Date: Tue, 4 Feb 2003 03:33:32 -0500 (EST) From: "Ilmar S. Habibulin" To: Robert Watson Cc: freebsd-current@freebsd.org Subject: Re: What is the difference between p_ucred and td_ucred? In-Reply-To: Message-ID: <20030204032624.U9181-100000@fledge.watson.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 3 Feb 2003, Robert Watson wrote: > The strategy for selecting a credential to check against is generally to > use td_ucred, and to hold no locks. You'll see that suser() does this, > for example. Under some circumstances: specifically, credential updates, > you need to hold the process lock and atomically check the process > credential before updating. If the thread doesn't immediately leave the > kernel (i.e., more checks might be performed), you'll also need to > propagate the cred change to the thread from the process. Ok. Thank you for an expanation, I'll consider that. Now i'm trying to reanimate Thomas Moestls' capability work. Is anybody interested in such integration? I have almost bootable kernel and now will try to understand kernel structures locking and td_ucred/p_ucred interactions, to make nessesary changes. Or SEBSD make capabilities completly unnesessary? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message