PERFORCE change 96349 for review

John Birrell jb at FreeBSD.org
Sat Apr 29 02:31:30 UTC 2006


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

Change 96349 by jb at jb_freebsd2 on 2006/04/29 02:31:25

	We don't have all the privilege levels that Solaris does, so
	don't mess with the DIF instructions during validation. Solaris is
	a bit sneaky and tries to keep itself secure by changing the 
	instruction types to 'restricted' ones which don't have permission
	to go foraging around all other the kernel address space.

Affected files ...

.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_difo.c#5 edit

Differences ...

==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_difo.c#5 (text+ko) ====

@@ -41,8 +41,12 @@
 	int kcheck;
 	uint_t pc;
 
+#if defined(sun)
 	kcheck = cr == NULL ||
 	    PRIV_POLICY_ONLY(cr, PRIV_DTRACE_KERNEL, B_FALSE) == 0;
+#else
+	kcheck = 0;
+#endif
 
 	dp->dtdo_destructive = 0;
 


More information about the p4-projects mailing list