Date: Mon, 19 Aug 2002 13:07:26 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 16296 for review Message-ID: <200208192007.g7JK7Qtp050089@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208192007.g7JK7Qtp050089>