From owner-p4-projects Thu Aug 15 12:40:49 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A661537B400; Thu, 15 Aug 2002 12:40:45 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32A8A37B401 for ; Thu, 15 Aug 2002 12:40:45 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A274743E91 for ; Thu, 15 Aug 2002 12:40:44 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7FJeiJU092986 for ; Thu, 15 Aug 2002 12:40:44 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7FJeixX092983 for perforce@freebsd.org; Thu, 15 Aug 2002 12:40:44 -0700 (PDT) Date: Thu, 15 Aug 2002 12:40:44 -0700 (PDT) Message-Id: <200208151940.g7FJeixX092983@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 16052 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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