From owner-p4-projects Mon Aug 19 13: 7:30 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2B95737B401; Mon, 19 Aug 2002 13:07:27 -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 C2EB437B400 for ; Mon, 19 Aug 2002 13:07:26 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E2EF43E42 for ; Mon, 19 Aug 2002 13:07:26 -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 g7JK7QJU050092 for ; Mon, 19 Aug 2002 13:07:26 -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 g7JK7Qtp050089 for perforce@freebsd.org; Mon, 19 Aug 2002 13:07:26 -0700 (PDT) Date: Mon, 19 Aug 2002 13:07:26 -0700 (PDT) Message-Id: <200208192007.g7JK7Qtp050089@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 16296 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=16296 Change 16296 by rwatson@rwatson_paprika on 2002/08/19 13:07:11 Use NOCRED not NULL when calling mac_check_vnode_write() without a struct file context. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_ktrace.c#14 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_ktrace.c#14 (text+ko) ==== @@ -771,7 +771,7 @@ vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); (void)VOP_LEASE(vp, td, cred, LEASE_WRITE); #ifdef MAC - error = mac_check_vnode_write(cred, NULL, vp); + error = mac_check_vnode_write(cred, NOCRED, vp); if (error == 0) #endif error = VOP_WRITE(vp, &auio, IO_UNIT | IO_APPEND, cred); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message