Date: Sat, 18 May 2002 14:40:46 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 11489 for review Message-ID: <200205182140.g4ILekC44665@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11489 Change 11489 by rwatson@rwatson_curry on 2002/05/18 14:39:55 No longer grab Giant for __mac_get_proc(), since it's not required for copyout(), and we use thread-local data as the source. With a move to flexible policy handling here, Giant might be needed again. Affected files ... ... //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#144 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#144 (text+ko) ==== @@ -1633,10 +1633,8 @@ { int error; - mtx_lock(&Giant); error = copyout(&td->td_ucred->cr_label, SCARG(uap, mac_p), sizeof(td->td_ucred->cr_label)); - mtx_unlock(&Giant); return (error); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205182140.g4ILekC44665>