PERFORCE change 79555 for review
Christian S.J. Peron
csjp at FreeBSD.org
Mon Jul 4 14:27:57 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=79555
Change 79555 by csjp at 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);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list