From owner-cvs-all Mon Apr 1 13:35:31 2002 Delivered-To: cvs-all@freebsd.org Received: from mail13.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by hub.freebsd.org (Postfix) with ESMTP id EC61C37B400 for ; Mon, 1 Apr 2002 13:35:23 -0800 (PST) Received: (qmail 30274 invoked from network); 1 Apr 2002 21:35:21 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 1 Apr 2002 21:35:21 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g31La7v15770; Mon, 1 Apr 2002 16:36:07 -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: <200204012131.g31LVDY55627@freefall.freebsd.org> Date: Mon, 01 Apr 2002 16:35:22 -0500 (EST) From: John Baldwin To: John Baldwin Subject: RE: cvs commit: src/sys/alpha/alpha promcons.c sys_machdep.c src Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 01-Apr-2002 John Baldwin wrote: > jhb 2002/04/01 13:31:13 PST > > Modified files: > > [ snip ] > > Log: > Change the suser() API to take advantage of td_ucred as well as do a > general cleanup of the API. The entire API now consists of two functions > similar to the pre-KSE API. The suser() function takes a thread pointer > as its only argument. The td_ucred member of this thread must be valid > so the only valid thread pointers are curthread and a few kernel threads > such as thread0. The suser_cred() function takes a pointer to a struct > ucred as its first argument and an integer flag as its second argument. > The flag is currently only used for the PRISON_ROOT flag. > > Discussed on: smp@ Oops, forgot: Tested on: x86, alpha It would be nice if someone would do the NOTES JKH task I mentioned last week as it would provide better testing coverage for !i386 archs for API changes like this that cover large portions of the kernel. The next victim in the credential API changes will be the p_can*() functions which will change to take a thread pointer as the first argument and to assert that the process being looked at as the second argument is locked. -- 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 cvs-all" in the body of the message