From owner-freebsd-threads@FreeBSD.ORG Fri Apr 25 03:15:13 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9288537B401 for ; Fri, 25 Apr 2003 03:15:12 -0700 (PDT) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AB9243FBF for ; Fri, 25 Apr 2003 03:15:12 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (210.50.248.139) by smtp01.syd.iprimus.net.au (7.0.012) id 3E96D1D20022F5E3; Fri, 25 Apr 2003 20:15:10 +1000 Received: by dilbert.robbins.dropbear.id.au (Postfix, from userid 1000) id 59936C90D; Fri, 25 Apr 2003 20:15:20 +1000 (EST) Date: Fri, 25 Apr 2003 20:15:20 +1000 From: Tim Robbins To: David Xu Message-ID: <20030425201520.A4699@dilbert.robbins.dropbear.id.au> References: <20030425131656.A93380@dilbert.robbins.dropbear.id.au> <028801c30adb$8b9095d0$f001a8c0@davidw2k> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <028801c30adb$8b9095d0$f001a8c0@davidw2k>; from davidxu@viatech.com.cn on Fri, Apr 25, 2003 at 11:33:41AM +0800 cc: freebsd-threads@FreeBSD.ORG Subject: Re: Threading and credential changes X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 10:15:13 -0000 On Fri, Apr 25, 2003 at 11:33:41AM +0800, David Xu wrote: > cred is updated when process enters kernel, > if the current thread cred is not same as process's cred, > it will be updated to use process's cred. > when process is in user mode, it is not important if the > cred is right one. Am I right ? Thanks. I didn't think to look at the MD code in sys/i386/i386. I knew I must have been overlooking something obvious. Tim