Date: Mon, 12 Jun 2006 22:00:11 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 99089 for review Message-ID: <200606122200.k5CM0B4x025513@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=99089 Change 99089 by jb@jb_freebsd2 on 2006/06/12 21:59:37 Disable a couple of things which require a complete credentials implementation. These were preventing destructive actions. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_priv.c#4 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_priv.c#4 (text+ko) ==== @@ -127,21 +127,29 @@ static int dtrace_priv_kernel(dtrace_state_t *state) { +#if defined(sun) if (state->dts_cred.dcr_action & DTRACE_CRA_KERNEL) return (1); cpu_core[curcpu].cpuc_dtrace_flags |= CPU_DTRACE_KPRIV; return (0); +#else + return (1); +#endif } static int dtrace_priv_kernel_destructive(dtrace_state_t *state) { +#if defined(sun) if (state->dts_cred.dcr_action & DTRACE_CRA_KERNEL_DESTRUCTIVE) return (1); cpu_core[curcpu].cpuc_dtrace_flags |= CPU_DTRACE_KPRIV; return (0); +#else + return (1); +#endif }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606122200.k5CM0B4x025513>