/titanic_41/usr/src/uts/common/os/ |
H A D | zone.c | 613 struct zone *zone; in zone_key_create() local 637 for (zone = list_head(&zone_active); zone != NULL; in zone_key_create() 638 zone = list_next(&zone_active, zone)) { in zone_key_create() 641 mutex_enter(&zone->zone_lock); in zone_key_create() 644 status = zone_status_get(zone); in zone_key_create() 647 mutex_exit(&zone->zone_lock); in zone_key_create() 651 t = zsd_find_mru(&zone->zone_zsd, key); in zone_key_create() 657 mutex_exit(&zone->zone_lock); in zone_key_create() 668 zone_t *, zone, zone_key_t, key); in zone_key_create() 670 list_insert_tail(&zone->zone_zsd, t); in zone_key_create() [all …]
|
H A D | pool_pset.c | 113 pool_pset_setup_cb(zone_t *zone, void *arg) in pool_pset_setup_cb() argument 119 ASSERT(zone != NULL); in pool_pset_setup_cb() 121 if (zone == global_zone) in pool_pset_setup_cb() 123 if (zone_pset_get(zone) != sa->psetid) in pool_pset_setup_cb() 127 cpu_visibility_configure(sa->cpu, zone); in pool_pset_setup_cb() 130 cpu_visibility_unconfigure(sa->cpu, zone); in pool_pset_setup_cb() 133 cpu_visibility_online(sa->cpu, zone); in pool_pset_setup_cb() 136 cpu_visibility_offline(sa->cpu, zone); in pool_pset_setup_cb() 139 cpu_visibility_add(sa->cpu, zone); in pool_pset_setup_cb() 142 cpu_visibility_remove(sa->cpu, zone); in pool_pset_setup_cb() [all …]
|
H A D | tlabel.c | 320 zone_t *zone; in getflabel() local 354 zone = rvfsp->vfs_zone; in getflabel() 355 zone_hold(zone); in getflabel() 367 zone = curproc->p_zone; in getflabel() 368 zone_hold(zone); in getflabel() 397 zone = zone_find_by_any_path(vpath, B_FALSE); in getflabel() 403 if ((zone != global_zone) || ((vfsp->vfs_flag & VFS_RDONLY) != 0)) in getflabel() 410 if ((zone = curproc->p_zone) != global_zone) { in getflabel() 411 zone_hold(zone); in getflabel() 422 zone_rele(zone); in getflabel() [all …]
|
H A D | cred.c | 109 get_ephemeral_zsd(zone_t *zone) in get_ephemeral_zsd() argument 113 eph_zsd = zone_getspecific(ephemeral_zone_key, zone); in get_ephemeral_zsd() 119 eph_zsd = zone_getspecific(ephemeral_zone_key, zone); in get_ephemeral_zsd() 131 eph_zsd->eph_nobody = crdup(zone->zone_kcred); in get_ephemeral_zsd() 134 eph_zsd->eph_nobody->cr_zone = zone; in get_ephemeral_zsd() 136 (void) zone_setspecific(ephemeral_zone_key, zone, eph_zsd); in get_ephemeral_zsd() 762 zone_t *zone = crgetzone(cr); in crsetresuid() local 766 if (BADUID(r, zone) || BADUID(e, zone) || BADUID(s, zone)) in crsetresuid() 782 zone_t *zone = crgetzone(cr); in crsetresgid() local 786 if (BADGID(r, zone) || BADGID(e, zone) || BADGID(s, zone)) in crsetresgid() [all …]
|
/titanic_41/usr/src/cmd/zoneadm/ |
H A D | svc-zones | 61 for zone in `zoneadm list -pi | nawk -F: '{ 66 zonecfg -z $zone info autoboot | grep "true" >/dev/null 2>&1 70 echo " $zone\c" 77 zoneadm -z $zone boot & 79 zoneadm -z $zone sysboot & 111 for zone in $zonelist; do 112 echo " $zone\c" 113 zoneadm -z $zone shutdown & 131 for zone in `zoneadm list`; do 132 if [ "$zone" != "global" ]; then [all …]
|
/titanic_41/usr/src/lib/libzonestat/common/ |
H A D | libzonestat.c | 98 zs_zone_t *zone; in zs_lookup_zone_byid() local 100 for (zone = list_head(&u->zsu_zone_list); zone != NULL; in zs_lookup_zone_byid() 101 zone = list_next(&u->zsu_zone_list, zone)) { in zs_lookup_zone_byid() 102 if (zone->zsz_id == zid) in zs_lookup_zone_byid() 103 return (zone); in zs_lookup_zone_byid() 111 zs_zone_t *zone; in zs_lookup_zone_byname() local 113 for (zone = list_head(&u->zsu_zone_list); zone != NULL; in zs_lookup_zone_byname() 114 zone = list_next(&u->zsu_zone_list, zone)) { in zs_lookup_zone_byname() 115 if (strcmp(zone->zsz_name, name) == 0) in zs_lookup_zone_byname() 116 return (zone); in zs_lookup_zone_byname() [all …]
|
/titanic_41/usr/src/cmd/zonestat/zonestatd/ |
H A D | zonestatd.c | 813 zsd_zone_t *zone; in zsd_lookup_zone() local 815 for (zone = list_head(&ctl->zsctl_zones); zone != NULL; in zsd_lookup_zone() 816 zone = list_next(&ctl->zsctl_zones, zone)) { in zsd_lookup_zone() 817 if (strcmp(zone->zsz_name, zonename) == 0) { in zsd_lookup_zone() 819 zone->zsz_id = zoneid; in zsd_lookup_zone() 820 return (zone); in zsd_lookup_zone() 829 zsd_zone_t *zone; in zsd_lookup_zone_byid() local 831 for (zone = list_head(&ctl->zsctl_zones); zone != NULL; in zsd_lookup_zone_byid() 832 zone = list_next(&ctl->zsctl_zones, zone)) { in zsd_lookup_zone_byid() 833 if (zone->zsz_id == zoneid) in zsd_lookup_zone_byid() [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/4.2/ |
H A D | timezone.c | 39 static struct zone { struct 63 char *timezone(zone, dst) in timezone() argument 65 register struct zone *zp; in timezone() 86 if (zp->offset==zone) { in timezone() 92 if (zone<0) { in timezone() 93 zone = -zone; in timezone() 97 sprintf(czone, "GMT%s%d:%02d", sign, zone/60, zone%60); in timezone()
|
/titanic_41/usr/src/pkg/manifests/ |
H A D | service-fault-management.mf | 28 # global zone only. See the include file for greater detail, as well as 43 dir path=etc group=sys variant.opensolaris.zone=__NODEFAULT 44 dir path=etc/fm group=sys variant.opensolaris.zone=__NODEFAULT 45 dir path=etc/fm/fmd group=sys variant.opensolaris.zone=__NODEFAULT 49 dir path=etc/logadm.d group=sys variant.opensolaris.zone=__NODEFAULT 50 dir path=etc/net-snmp variant.opensolaris.zone=__NODEFAULT 51 dir path=etc/net-snmp/snmp variant.opensolaris.zone=__NODEFAULT 52 dir path=etc/net-snmp/snmp/mibs variant.opensolaris.zone=__NODEFAULT 54 # Our kernel driver is global zone only 62 dir path=lib/fm variant.opensolaris.zone=__NODEFAULT [all …]
|
H A D | service-hal.mf | 34 dir path=etc group=sys variant.opensolaris.zone=global 35 dir path=etc/dbus-1 variant.opensolaris.zone=global 36 dir path=etc/dbus-1/system.d variant.opensolaris.zone=global 37 dir path=etc/hal variant.opensolaris.zone=global 38 dir path=etc/hal/fdi variant.opensolaris.zone=global 39 dir path=etc/hal/fdi/information variant.opensolaris.zone=global 40 dir path=etc/hal/fdi/information/10freedesktop variant.opensolaris.zone=global 41 dir path=etc/hal/fdi/information/20thirdparty variant.opensolaris.zone=global 42 dir path=etc/hal/fdi/information/30user variant.opensolaris.zone=global 43 dir path=etc/hal/fdi/policy variant.opensolaris.zone=global [all …]
|
H A D | system-storage-fibre-channel-port-utility.mf | 34 dir path=lib variant.opensolaris.zone=global 35 dir path=lib/svc variant.opensolaris.zone=global 36 dir path=lib/svc/manifest group=sys variant.opensolaris.zone=global 37 dir path=lib/svc/manifest/network group=sys variant.opensolaris.zone=global 38 dir path=lib/svc/manifest/system group=sys variant.opensolaris.zone=global 39 dir path=lib/svc/method variant.opensolaris.zone=global 44 variant.opensolaris.zone=global 46 variant.opensolaris.zone=global 48 variant.opensolaris.zone=global 49 file path=lib/svc/method/npivconfig mode=0555 variant.opensolaris.zone=global [all …]
|
H A D | system-zones.mf | 32 dir path=etc group=sys variant.opensolaris.zone=global 33 dir path=etc/brand group=sys variant.opensolaris.zone=global 34 dir path=etc/zones group=sys variant.opensolaris.zone=global 35 dir path=lib variant.opensolaris.zone=global 36 dir path=lib/svc variant.opensolaris.zone=global 37 dir path=lib/svc/manifest group=sys variant.opensolaris.zone=global 38 dir path=lib/svc/manifest/system group=sys variant.opensolaris.zone=global 39 dir path=lib/svc/method variant.opensolaris.zone=global 62 file path=etc/zones/SUNWblank.xml mode=0444 variant.opensolaris.zone=global 63 file path=etc/zones/SUNWdefault.xml mode=0444 variant.opensolaris.zone=global [all …]
|
H A D | network-iscsi-initiator.mf | 32 dir path=etc group=sys variant.opensolaris.zone=global 33 dir path=etc/iscsi group=sys variant.opensolaris.zone=global 34 dir path=etc/security group=sys variant.opensolaris.zone=global 38 dir path=lib variant.opensolaris.zone=global 39 dir path=lib/svc variant.opensolaris.zone=global 40 dir path=lib/svc/manifest group=sys variant.opensolaris.zone=global 41 dir path=lib/svc/manifest/network group=sys variant.opensolaris.zone=global 43 variant.opensolaris.zone=global 44 dir path=lib/svc/method variant.opensolaris.zone=global 56 mode=0444 variant.opensolaris.zone=global [all …]
|
/titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/sys/ |
H A D | kidmap.h | 84 kidmap_getuidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, 88 kidmap_getgidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, 92 kidmap_getpidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, 96 kidmap_getsidbyuid(zone_t *zone, uid_t uid, const char **sid_prefix, 100 kidmap_getsidbygid(zone_t *zone, gid_t gid, const char **sid_prefix, 113 kidmap_get_create(zone_t *zone); 161 int idmap_reg_dh(zone_t *zone, door_handle_t dh); 162 int idmap_unreg_dh(zone_t *zone, door_handle_t dh); 168 door_handle_t idmap_get_door(zone_t *zone); 174 void idmap_purge_cache(zone_t *zone);
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | kidmap.h | 71 kidmap_getuidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, 75 kidmap_getgidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, 79 kidmap_getpidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, 83 kidmap_getsidbyuid(zone_t *zone, uid_t uid, const char **sid_prefix, 87 kidmap_getsidbygid(zone_t *zone, gid_t gid, const char **sid_prefix, 100 kidmap_get_create(zone_t *zone); 147 int idmap_reg_dh(zone_t *zone, door_handle_t dh); 148 int idmap_unreg_dh(zone_t *zone, door_handle_t dh); 154 door_handle_t idmap_get_door(zone_t *zone); 160 void idmap_purge_cache(zone_t *zone);
|
H A D | cred.h | 135 struct zone; 136 extern void crsetzone(cred_t *, struct zone *); 137 extern struct zone *crgetzone(const cred_t *); 170 extern boolean_t valid_ephemeral_uid(struct zone *, uid_t); 171 extern boolean_t valid_ephemeral_gid(struct zone *, gid_t); 173 extern int eph_uid_alloc(struct zone *, int, uid_t *, int); 174 extern int eph_gid_alloc(struct zone *, int, gid_t *, int);
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | sidsys.c | 49 zone_t *zone = crgetzone(CRED()); in allocids() local 51 dh = idmap_get_door(zone); in allocids() 67 idmap_purge_cache(zone); in allocids() 73 err = eph_uid_alloc(zone, flag, &su, nuids); in allocids() 75 err = eph_gid_alloc(zone, flag, &sg, ngids); in allocids() 111 zone_t *zone; in idmap_unreg() local 116 zone = crgetzone(CRED()); in idmap_unreg() 117 res = idmap_unreg_dh(zone, dh); in idmap_unreg() 131 zone_t *zone = crgetzone(CRED()); in idmap_flush_kcache() local 133 dh = idmap_get_door(zone); in idmap_flush_kcache() [all …]
|
H A D | gid.c | 51 zone_t *zone = crgetzone(CRED()); in setgid() local 54 if (!VALID_GID(gid, zone)) in setgid() 58 if (ksid_lookupbygid(zone, gid, &ksid) != 0) in setgid() 151 zone_t *zone = crgetzone(CRED()); in setegid() local 153 if (!VALID_GID(gid, zone)) in setegid() 157 if (ksid_lookupbygid(zone, gid, &ksid) != 0) in setegid() 226 zone_t *zone = crgetzone(CRED()); in setregid() local 228 if ((rgid != -1 && !VALID_GID(rgid, zone)) || in setregid() 229 (egid != -1 && !VALID_GID(egid, zone))) in setregid() 233 if (ksid_lookupbygid(zone, egid, &ksid) != 0) in setregid()
|
/titanic_41/usr/src/uts/common/disp/ |
H A D | cpucaps.c | 419 cap_zone_enable(zone_t *zone, hrtime_t value) in cap_zone_enable() argument 421 cpucap_t *cap = zone->zone_cpucap; in cap_zone_enable() 429 cap->cap_zone = zone; in cap_zone_enable() 434 if ((cap->cap_kstat = rctl_kstat_create_zone(zone, "cpucaps", in cap_zone_enable() 455 cap_zone_disable(zone_t *zone) in cap_zone_disable() argument 457 cpucap_t *cap = zone->zone_cpucap; in cap_zone_disable() 461 ASSERT(cap->cap_zone == zone); in cap_zone_disable() 518 zone_t *zone = cap->cap_zone; in cap_project_usage_walker() local 523 ASSERT(zone == cap->cap_project->kpj_zone); in cap_project_usage_walker() 535 if (ZONE_IS_CAPPED(zone)) { in cap_project_usage_walker() [all …]
|
/titanic_41/usr/src/pkg/transforms/ |
H A D | global_zone_only_component | 30 # to appear primarily in the global zone, but which may have some small 34 # dir, hardlink, link) should appear *only* in the global zone, with 46 # variant.opensolaris.zone=__NODEFAULT 51 # Note: When you specify variant.opensolaris.zone=__NODEFAULT, the 52 # net effect is that *no* variant.opensolaris.zone attribute will 60 # it should have *no* variant.opensolaris.zone attribute. So it's a bit 64 # which have no variant.opensolaris.zone attribute to be 65 # variant.opensolaris.zone=global. For those actions which need to appear 67 # variant.opensolaris.zone=__NODEFAULT. Additionally we have some rules 76 <transform dir file link hardlink path=.*/man/.* -> default variant.opensolaris.zone __NODEFAULT> [all …]
|
/titanic_41/usr/src/cmd/syseventd/ |
H A D | svc-syseventd | 45 zone=`smf_zonename` 46 /usr/bin/pkill -x -u 0 -P 1 -z $zone rcm_daemon 47 /usr/bin/pkill -x -u 0 -P 1 -z $zone syseventd 48 /usr/bin/pkill -x -u 0 -P 1 -z $zone devfsadm 49 /usr/bin/pkill -x -u 0 -P 1 -z $zone syseventconfd
|
/titanic_41/usr/src/lib/libast/common/tm/ |
H A D | tmxtime.c | 61 tmset(tm_info.zone); in tmxtime() 88 t += tm_info.zone->west * 60; in tmxtime() 89 if (!tm_info.zone->daylight) in tmxtime() 95 now = tmxsec(tmxtime(tm, tm_info.zone->west)); in tmxtime() 100 t += tm_info.zone->dst * 60; in tmxtime() 106 if (!tm_info.zone->daylight) in tmxtime() 113 now = tmxsec(tmxtime(tm, tm_info.zone->west)); in tmxtime()
|
/titanic_41/usr/src/uts/common/vm/ |
H A D | vm_usage.c | 385 vmu_zone_t *zone = (vmu_zone_t *)val; in vmu_free_zone() local 387 if (zone->vmz_zone != NULL) { in vmu_free_zone() 388 vmu_free_entity((mod_hash_val_t)zone->vmz_zone); in vmu_free_zone() 389 zone->vmz_zone = NULL; in vmu_free_zone() 391 if (zone->vmz_projects_hash != NULL) in vmu_free_zone() 392 i_mod_hash_clear_nosync(zone->vmz_projects_hash); in vmu_free_zone() 393 if (zone->vmz_tasks_hash != NULL) in vmu_free_zone() 394 i_mod_hash_clear_nosync(zone->vmz_tasks_hash); in vmu_free_zone() 395 if (zone->vmz_rusers_hash != NULL) in vmu_free_zone() 396 i_mod_hash_clear_nosync(zone->vmz_rusers_hash); in vmu_free_zone() [all …]
|
/titanic_41/usr/src/tools/scripts/ |
H A D | onu.sh | 111 zone=$1 113 name=`echo $zone | cut -d: -f 2` 118 brand=`echo $zone | cut -d: -f 6` 129 state=`echo $zone | cut -d: -f 3` 137 zoneroot=`echo $zone | cut -d: -f 4` 240 for zone in `do_cmd zoneadm -R $tmpdir list -cip`; do 241 update_zone $zone
|
/titanic_41/usr/src/uts/common/fs/autofs/ |
H A D | auto_sys.c | 43 zone_t *zone; in autofssys() local 51 if ((zone = zone_find_by_id(zoneid)) == NULL) in autofssys() 54 fngp = zone_getspecific(autofs_key, zone); in autofssys() 57 zone_rele(zone); in autofssys() 65 zone_rele(zone); in autofssys()
|