PERFORCE change 113283 for review

Todd Miller millert at FreeBSD.org
Sun Jan 21 22:40:05 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=113283

Change 113283 by millert at millert_macbook on 2007/01/21 22:34:34

	Use vfs_context_ucred() where it makes sense.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vfs/vfs_vnops.c#9 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vfs/vfs_vnops.c#9 (text+ko) ====

@@ -857,7 +857,7 @@
 	context.vc_ucred = p->p_ucred;	/* XXX kauth_cred_get() ??? */
 
 #ifdef MAC
-	error = mac_vnode_check_ioctl(context.vc_ucred, vp, com);
+	error = mac_vnode_check_ioctl(vfs_context_ucred(&context), vp, com);
 	if (error)
 		goto out;
 #endif
@@ -1025,7 +1025,7 @@
 		context.vc_ucred = p->p_ucred;	/* XXX kauth_cred_get() ??? */
 
 #ifdef MAC
-		error = mac_vnode_check_kqfilter(kauth_cred_get(),
+		error = mac_vnode_check_kqfilter(vfs_context_ucred(&context),
 		    fp->f_fglob->fg_cred, kn, vp);
 		if (error) {
 			(void)vnode_put(vp);


More information about the trustedbsd-cvs mailing list