PERFORCE change 16052 for review
Robert Watson
rwatson at freebsd.org
Thu Aug 15 19:40:44 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16052
Change 16052 by rwatson at rwatson_tislabs on 2002/08/15 12:40:36
Remove dup MAC check on readdir() from integ.
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/kern/vfs_syscalls.c#77 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/kern/vfs_syscalls.c#77 (text+ko) ====
@@ -2935,18 +2935,6 @@
auio.uio_td = td;
auio.uio_resid = SCARG(uap, count);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
-#ifdef MAC
- /*
- * Using the process credentials, not the cached ones owned by the fd,
- * check for ability to search in a directory before reading from it.
- */
- error = mac_check_vnode_readdir(td->td_ucred, vp);
- if (error) {
- VOP_UNLOCK(vp, 0, td);
- fdrop(fp, td);
- return (error);
- }
-#endif /* MAC */
loff = auio.uio_offset = fp->f_offset;
#ifdef MAC
error = mac_check_vnode_readdir(td->td_ucred, 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