Print this page
2915 DTrace in a zone should see "cpu", "curpsinfo", et al
2916 DTrace in a zone should be able to access fds[]
2917 DTrace in a zone should have limited provider access
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Adam Leventhal <ahl@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/zone.h
          +++ new/usr/src/uts/common/sys/zone.h
↓ open down ↓ 529 lines elided ↑ open up ↑
 530  530          struct mntelem  *zone_mntfs_db;
 531  531          krwlock_t       zone_mntfs_db_lock;
 532  532  
 533  533          struct klpd_reg         *zone_pfexecd;
 534  534  
 535  535          char            *zone_fs_allowed;
 536  536          rctl_qty_t      zone_nprocs;    /* number of processes in the zone */
 537  537          rctl_qty_t      zone_nprocs_ctl;        /* current limit protected by */
 538  538                                                  /* zone_rctls->rcs_lock */
 539  539          kstat_t         *zone_nprocs_kstat;
      540 +
      541 +        /*
      542 +         * DTrace-private per-zone state
      543 +         */
      544 +        int             zone_dtrace_getf;       /* # of unprivileged getf()s */
 540  545  } zone_t;
 541  546  
 542  547  /*
 543  548   * Special value of zone_psetid to indicate that pools are disabled.
 544  549   */
 545  550  #define ZONE_PS_INVAL   PS_MYID
 546  551  
 547  552  
 548  553  extern zone_t zone0;
 549  554  extern zone_t *global_zone;
↓ open down ↓ 224 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX