Date: Mon, 4 Jul 2005 14:27:57 GMT From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 79555 for review Message-ID: <200507041427.j64ERvs2085917@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=79555 Change 79555 by csjp@csjp_xor on 2005/07/04 14:27:15 We no longer need curthread here. We can use the reference to the calling thread passed down from the syscall handler. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/mac_chkexec/mac_chkexec.c#10 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/mac_chkexec/mac_chkexec.c#10 (text+ko) ==== @@ -840,12 +840,10 @@ CTR0(KTR_MAC, "mac_chkexec_check: invalid checksum algorithm"); return (EPERM); } - NDINIT(&nd, LOOKUP, LOCKLEAF | FOLLOW, - UIO_USERSPACE, arg, td); + NDINIT(&nd, LOOKUP, LOCKLEAF | FOLLOW, UIO_USERSPACE, arg, td); if ((error = namei(&nd)) != 0) return (error); - error = ha->crypto_hash(nd.ni_vp, - curthread->td_ucred, digest); + error = ha->crypto_hash(nd.ni_vp, td->td_ucred, digest); if (error) { NDFREE(&nd, NDF_ONLY_PNBUF); vput(nd.ni_vp);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507041427.j64ERvs2085917>