PERFORCE change 16296 for review

Robert Watson rwatson at freebsd.org
Mon Aug 19 20:07:26 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16296

Change 16296 by rwatson at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list