From owner-p4-projects@FreeBSD.ORG Sat Apr 29 02:31:30 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 11AB616A402; Sat, 29 Apr 2006 02:31:30 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E25E316A400 for ; Sat, 29 Apr 2006 02:31:29 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B226343D45 for ; Sat, 29 Apr 2006 02:31:29 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3T2VT2I062941 for ; Sat, 29 Apr 2006 02:31:29 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3T2VTSQ062938 for perforce@freebsd.org; Sat, 29 Apr 2006 02:31:29 GMT (envelope-from jb@freebsd.org) Date: Sat, 29 Apr 2006 02:31:29 GMT Message-Id: <200604290231.k3T2VTSQ062938@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 96349 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 02:31:30 -0000 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;