Lines Matching refs:zone

36 #include <sys/zone.h>
162 * So we rely on conventions: zones, zone names, and zone paths
164 * the exported name to find the equivalent local zone and its
199 * Skip over zonepath (not including "root"), e.g. /zone/internal
205 /* Check if we now have something like "/zone/public/" */
320 zone_t *zone;
348 * Fast path, for objects in a labeled zone: everything except
349 * for lofs/nfs will be just the label of that zone.
354 zone = rvfsp->vfs_zone;
355 zone_hold(zone);
363 * current zone.
367 zone = curproc->p_zone;
368 zone_hold(zone);
397 zone = zone_find_by_any_path(vpath, B_FALSE);
400 * If the vnode source zone is properly set to a non-global zone, or
401 * any zone if the mount is R/W, then use the label of that zone.
403 if ((zone != global_zone) || ((vfsp->vfs_flag & VFS_RDONLY) != 0))
407 * Otherwise, if we're not in the global zone, use the label of
408 * our zone.
410 if ((zone = curproc->p_zone) != global_zone) {
411 zone_hold(zone);
416 * We're in the global zone and the mount is R/W ... so the file
417 * may actually be in the global zone -- or in the root of any zone.
422 zone_rele(zone);
423 zone = zone_find_by_any_path(vpath, B_FALSE);
426 if ((curproc->p_zone == global_zone) && (zone == global_zone)) {
433 * File is in the global zone - check whether it's admin_high.
434 * If it's in a filesys that was exported from the global zone,
436 * filesys that's NOT exported to any zone, it's admin_high.
440 * zone device).
473 * zone to a zone).
487 * to our global zone file path? I.e., check
512 * Now that we have the "home" zone for the file, return the slabel
513 * of that zone.
515 zl = zone->zone_slabel;
517 zone_rele(zone);
525 zone_rele(zone);