Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2002 15:06:37 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 15701 for review
Message-ID:  <200208082206.g78M6b5a024535@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15701

Change 15701 by rwatson@rwatson_tislabs on 2002/08/08 15:06:02

	Actually pass cred to VOP_READ() and VOP_WRITE().

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#44 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#44 (text+ko) ====

@@ -421,9 +421,9 @@
 			cred = active_cred;
 
 		if (rw == UIO_READ)
-			error = VOP_READ(vp, &auio, ioflg, saved_cred);
+			error = VOP_READ(vp, &auio, ioflg, cred);
 		else
-			error = VOP_WRITE(vp, &auio, ioflg, saved_cred);
+			error = VOP_WRITE(vp, &auio, ioflg, cred);
 	}
 	if (aresid)
 		*aresid = auio.uio_resid;

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?200208082206.g78M6b5a024535>