Date: Thu, 15 Aug 2002 12:40:44 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 16052 for review Message-ID: <200208151940.g7FJeixX092983@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16052 Change 16052 by rwatson@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@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?200208151940.g7FJeixX092983>