Print this page
OS-208 DTrace needs to use zone_did to match zone-limited enablings

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/cred.c
          +++ new/usr/src/uts/common/os/cred.c
↓ open down ↓ 721 lines elided ↑ open up ↑
 722  722  }
 723  723  
 724  724  zoneid_t
 725  725  crgetzoneid(const cred_t *cr)
 726  726  {
 727  727          return (cr->cr_zone == NULL ?
 728  728              (cr->cr_uid == -1 ? (zoneid_t)-1 : GLOBAL_ZONEID) :
 729  729              cr->cr_zone->zone_id);
 730  730  }
 731  731  
      732 +zoneid_t
      733 +crgetzonedid(const cred_t *cr)
      734 +{
      735 +        return (cr->cr_zone == NULL ?
      736 +            (cr->cr_uid == -1 ? (zoneid_t)-1 : GLOBAL_ZONEID) :
      737 +            cr->cr_zone->zone_did);
      738 +}
      739 +
 732  740  projid_t
 733  741  crgetprojid(const cred_t *cr)
 734  742  {
 735  743          return (cr->cr_projid);
 736  744  }
 737  745  
 738  746  zone_t *
 739  747  crgetzone(const cred_t *cr)
 740  748  {
 741  749          return (cr->cr_zone);
↓ open down ↓ 739 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX