OpenSolaris

Printable Version Enter a New Search
Bug ID 4970596
Synopsis RFE: should be able to run some DTrace programs in a zone
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:zones
Keywords zones
Responsible Engineer Daniel Price
Reported Against s10_50 , s10_74 , solaris_10u1
Duplicate Of
Introduced In
Commit to Fix snv_37
Fixed In snv_37
Release Fixed solaris_nevada(snv_37) , solaris_10u4(s10u4_03) (Bug ID:2143376)
Related Bugs 6356708 , 6388070 , 6393431 , 6464813 , 4966416 , 6231905
Submit Date 18-December-2003
Last Update Date 3-April-2006
Description
Certain dtrace programs, particularly ones that only require the
dtrace_proc and dtrace_user privileges, should work in a non-global
zone (though obviously be restricted to the processes in that zone).
This will become increasingly important as more monitoring and debugging
tools are built using dtrace.
This RFE is more or less an umbrella for getting DTrace working
inside a zone.  Other relevant CRs are:

6231905 PRIV_DTRACE_PROC and PRIV_DTRACE_USER don't respect PRIV_PROC_ZONE
6388070 non-root non-global zone users can't get dtrace provider modules to load
6393431 dtrace_proc + proc_owner doesn't sufficiently enable destructive actions

The main things which are needed to resolve this:

   - Correct the DTrace/zones/privileges interactions
   - Add the DTrace devices to zones
   - Make sure said devices have the right permissions

This work is dependent upon

   4966416 RFE: zone privileges should be configurable

And requires that the global administrator intervene to assign dtrace_user,
dtrace_proc or both to zones which should be able to use DTrace.  dtrace_kernel
is never permitted inside of a zone, and a zone may never use the destructive
actions which require ALL privs: chill(), panic(), breakpoint().
Work Around
N/A
Comments
N/A