Mounting File Systems in Zones
When file systems are mounted from within a zone, the nodevices
option applies. For example, if a zone is granted access to a block device (/dev/dsk/c0t0d0s7
) and a raw device (/dev/rdsk/c0t0d0s7
) corresponding to a UFS file system, the file system is automatically mounted nodevices
when mounted from within a zone. This rule does not apply to mounts specified through a zonecfg
configuration.
Note:
Allowing file system mounts other than the default might enable the zone administrator to compromise the system.Options for mounting file systems in non-global zones are described in the following table. Any file system type not listed in the table can be specified in the configuration if it has a mount binary in /usr/lib/
fstype
/mount
.
To mount file system types other than HSFS and NFS from inside the non-global zone, also add the file system type to the configuration by using the zonecfg
fs-allowed
property.
File System | Mounting Options in a Non-Global Zone |
---|---|
AutoFS |
Cannot be mounted using |
CacheFS |
Cannot be used in a non-global zone. |
FDFS |
Can be mounted using |
HSFS |
Can be mounted using |
LOFS |
Can be mounted using |
MNTFS |
Cannot be mounted using |
NFS |
Cannot be mounted using |
PCFS |
Can be mounted using |
PROCFS |
Cannot be mounted using |
TMPFS |
Can be mounted using |
UDFS |
Can be mounted using |
UFS |
Can be mounted using The The global$ pfexec pkg -R /system/zones/zonename/root install file-system/ufs |
VxFS |
Can be mounted using |
ZFS |
Can be mounted using the |
For mounting procedures, see Installing a Non-Global Zone and Adding File Systems for Zone Use.
For more information, see How to Create and Deploy a Non-Global Zone and the mount
(8) man page.