Date: Mon, 01 Apr 2002 16:35:22 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: John Baldwin <jhb@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/alpha/alpha promcons.c sys_machdep.c src Message-ID: <XFMail.20020401163522.jhb@FreeBSD.org> In-Reply-To: <200204012131.g31LVDY55627@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020401163522.jhb>