Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 2006 02:31:29 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 96349 for review
Message-ID:  <200604290231.k3T2VTSQ062938@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96349

Change 96349 by jb@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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604290231.k3T2VTSQ062938>