PERFORCE change 113348 for review

Todd Miller millert at FreeBSD.org
Mon Jan 22 16:38:42 UTC 2007


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

Change 113348 by millert at millert_macbook on 2007/01/22 16:06:42

	Use vfs_context_ucred() instead of pulling the ucred out
	of the proc structure.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/kern/kern_exec.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/kern/kern_exec.c#6 (text+ko) ====

@@ -1410,7 +1410,8 @@
 	}
 
 #ifdef MAC
-	error = mac_vnode_check_exec(p->p_ucred, vp, imgp->ip_execlabelp);
+	error = mac_vnode_check_exec(vfs_context_ucred(imgp->ip_vfs_context),
+	    vp, imgp);
 	if (error)
 		return (error);
 #endif


More information about the trustedbsd-cvs mailing list