From owner-freebsd-threads@FreeBSD.ORG Thu Apr 24 23:08:03 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 C5F4337B407; Thu, 24 Apr 2003 23:08:03 -0700 (PDT) Received: from exchhz01.viatech.com.cn (ip-167-164-97-218.anlai.com [218.97.164.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFA8F43F75; Thu, 24 Apr 2003 23:08:00 -0700 (PDT) (envelope-from davidxu@viatech.com.cn) Received: from DAVIDW2K ([192.168.1.240]) by exchhz01.viatech.com.cn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id JM648884; Fri, 25 Apr 2003 11:18:11 +0800 Message-ID: <028801c30adb$8b9095d0$f001a8c0@davidw2k> From: "David Xu" To: "Tim Robbins" , References: <20030425131656.A93380@dilbert.robbins.dropbear.id.au> Date: Fri, 25 Apr 2003 11:33:41 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 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 06:08:04 -0000 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 ? David Xu ----- Original Message -----=20 From: "Tim Robbins" To: Sent: Friday, April 25, 2003 11:16 AM Subject: Threading and credential changes > I'm trying to understand the way a thread's td_ucred is updated. In = ast(), > cred_update_thread() is called to update it when it doesn't match the = one > stored in the proc. However, setuid() etc. don't set the = TDF_ASTPENDING flag > on any threads, not even the current thread. Am I misunderstanding = what ast() > does, does the thread's cred get updated in some other way, or is this = a bug? >=20 >=20 > Tim > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to = "freebsd-threads-unsubscribe@freebsd.org"