PERFORCE change 15628 for review
Robert Watson
rwatson at freebsd.org
Tue Aug 6 21:45:19 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15628
Change 15628 by rwatson at rwatson_tislabs on 2002/08/06 14:44:22
Temporarily disable the checks in vn_rdwr() since they appear
to cause problems when the active_cred is used rather than the
saved_cred during NFS mounting. I'll debug this more later.
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#40 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#40 (text+ko) ====
@@ -399,18 +399,22 @@
auio.uio_rw = rw;
auio.uio_td = td;
if (rw == UIO_READ) {
+#if 0
#ifdef MAC
/* XXXMAC: we should pass in active_cred to vn_rdwr(). */
error = mac_check_vnode_read(td->td_ucred, cred, vp);
if (error == 0)
#endif
+#endif
error = VOP_READ(vp, &auio, ioflg, cred);
} else {
+#if 0
#ifdef MAC
/* XXXMAC: we should pass in active_cred to vn_rdwr(). */
error = mac_check_vnode_write(td->td_ucred, cred, vp);
if (error == 0)
#endif
+#endif
error = VOP_WRITE(vp, &auio, ioflg, cred);
}
if (aresid)
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