From owner-p4-projects Mon Mar 17 13:33:35 2003 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id CE70937B405; Mon, 17 Mar 2003 13:33:33 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D34337B404 for ; Mon, 17 Mar 2003 13:33:33 -0800 (PST) Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id D657C43FA3 for ; Mon, 17 Mar 2003 13:33:31 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 11225 invoked from network); 17 Mar 2003 21:33:40 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 17 Mar 2003 21:33:40 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h2HLXSOv069299; Mon, 17 Mar 2003 16:33:29 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200303172053.h2HKrco6001673@repoman.freebsd.org> Date: Mon, 17 Mar 2003 16:33:47 -0500 (EST) From: John Baldwin To: John Baldwin Subject: RE: PERFORCE change 27017 for review Cc: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 17-Mar-2003 John Baldwin wrote: > http://perforce.freebsd.org/chv.cgi?CH=27017 > > Change 27017 by jhb@jhb_laptop on 2003/03/17 12:52:41 > > Revert back to this thread's credentials during an execve from a > multithreaded process. *sigh*, wrong branch but I guess that really isn't a big deal. > Affected files ... > > .. //depot/projects/smpng/sys/kern/kern_exec.c#54 edit > > Differences ... > > ==== //depot/projects/smpng/sys/kern/kern_exec.c#54 (text+ko) ==== > > @@ -213,6 +213,10 @@ > p->p_flag &= ~P_THREADED; > td->td_mailbox = NULL; > thread_single_end(); > + if (td->td_ucred != p->p_ucred) { > + crfree(p->p_ucred); > + p->p_ucred = crhold(td->td_ucred); > + } > } > p->p_flag |= P_INEXEC; > PROC_UNLOCK(p); -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message