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>


 520         list_t          zone_dl_list;
 521         netstack_t      *zone_netstack;
 522         struct cpucap   *zone_cpucap;   /* CPU caps data */
 523         /*
 524          * Solaris Auditing per-zone audit context
 525          */
 526         struct au_kcontext      *zone_audit_kctxt;
 527         /*
 528          * For private use by mntfs.
 529          */
 530         struct mntelem  *zone_mntfs_db;
 531         krwlock_t       zone_mntfs_db_lock;
 532 
 533         struct klpd_reg         *zone_pfexecd;
 534 
 535         char            *zone_fs_allowed;
 536         rctl_qty_t      zone_nprocs;    /* number of processes in the zone */
 537         rctl_qty_t      zone_nprocs_ctl;        /* current limit protected by */
 538                                                 /* zone_rctls->rcs_lock */
 539         kstat_t         *zone_nprocs_kstat;





 540 } zone_t;
 541 
 542 /*
 543  * Special value of zone_psetid to indicate that pools are disabled.
 544  */
 545 #define ZONE_PS_INVAL   PS_MYID
 546 
 547 
 548 extern zone_t zone0;
 549 extern zone_t *global_zone;
 550 extern uint_t maxzones;
 551 extern rctl_hndl_t rc_zone_nlwps;
 552 extern rctl_hndl_t rc_zone_nprocs;
 553 
 554 extern long zone(int, void *, void *, void *, void *);
 555 extern void zone_zsd_init(void);
 556 extern void zone_init(void);
 557 extern void zone_hold(zone_t *);
 558 extern void zone_rele(zone_t *);
 559 extern void zone_init_ref(zone_ref_t *);




 520         list_t          zone_dl_list;
 521         netstack_t      *zone_netstack;
 522         struct cpucap   *zone_cpucap;   /* CPU caps data */
 523         /*
 524          * Solaris Auditing per-zone audit context
 525          */
 526         struct au_kcontext      *zone_audit_kctxt;
 527         /*
 528          * For private use by mntfs.
 529          */
 530         struct mntelem  *zone_mntfs_db;
 531         krwlock_t       zone_mntfs_db_lock;
 532 
 533         struct klpd_reg         *zone_pfexecd;
 534 
 535         char            *zone_fs_allowed;
 536         rctl_qty_t      zone_nprocs;    /* number of processes in the zone */
 537         rctl_qty_t      zone_nprocs_ctl;        /* current limit protected by */
 538                                                 /* zone_rctls->rcs_lock */
 539         kstat_t         *zone_nprocs_kstat;
 540 
 541         /*
 542          * DTrace-private per-zone state
 543          */
 544         int             zone_dtrace_getf;       /* # of unprivileged getf()s */
 545 } zone_t;
 546 
 547 /*
 548  * Special value of zone_psetid to indicate that pools are disabled.
 549  */
 550 #define ZONE_PS_INVAL   PS_MYID
 551 
 552 
 553 extern zone_t zone0;
 554 extern zone_t *global_zone;
 555 extern uint_t maxzones;
 556 extern rctl_hndl_t rc_zone_nlwps;
 557 extern rctl_hndl_t rc_zone_nprocs;
 558 
 559 extern long zone(int, void *, void *, void *, void *);
 560 extern void zone_zsd_init(void);
 561 extern void zone_init(void);
 562 extern void zone_hold(zone_t *);
 563 extern void zone_rele(zone_t *);
 564 extern void zone_init_ref(zone_ref_t *);