From owner-p4-projects Tue Aug 6 14:45:27 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id DBA7D37B401; Tue, 6 Aug 2002 14:45:20 -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 7AB9937B400 for ; Tue, 6 Aug 2002 14:45:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 376FA43E5E for ; Tue, 6 Aug 2002 14:45:20 -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 g76LjKJU027307 for ; Tue, 6 Aug 2002 14:45:20 -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 g76LjJik027304 for perforce@freebsd.org; Tue, 6 Aug 2002 14:45:19 -0700 (PDT) Date: Tue, 6 Aug 2002 14:45:19 -0700 (PDT) Message-Id: <200208062145.g76LjJik027304@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 15628 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=15628 Change 15628 by rwatson@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@FreeBSD.org with "unsubscribe p4-projects" in the body of the message