mirror_zfs/man/man8
Matthew Thode 11b9ec23b9 Add full SELinux support
Four new dataset properties have been added to support SELinux.  They
are 'context', 'fscontext', 'defcontext' and 'rootcontext' which map
directly to the context options described in mount(8).  When one of
these properties is set to something other than 'none'.  That string
will be passed verbatim as a mount option for the given context when
the filesystem is mounted.

For example, if you wanted the rootcontext for a filesystem to be set
to 'system_u:object_r:fs_t' you would set the property as follows:

  $ zfs set rootcontext="system_u:object_r:fs_t" storage-pool/media

This will ensure the filesystem is automatically mounted with that
rootcontext.  It is equivalent to manually specifying the rootcontext
with the -o option like this:

  $ zfs mount -o rootcontext=system_u:object_r:fs_t storage-pool/media

By default all four contexts are set to 'none'.  Further information
on SELinux contexts is detailed in mount(8) and selinux(8) man pages.

Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Closes #1504
2013-12-19 10:37:31 -08:00
..
fsck.zfs.8 Create fsck.zfs and zhack man pages. 2013-03-19 13:29:13 -07:00
Makefile.am Create fsck.zfs and zhack man pages. 2013-03-19 13:29:13 -07:00
mount.zfs.8 Add full SELinux support 2013-12-19 10:37:31 -08:00
vdev_id.8 vdev_id support for device link aliases 2012-12-03 14:04:47 -08:00
zdb.8 Dedup-related documentation additions for zpool and zdb. 2013-10-22 10:08:51 -07:00
zfs.8 Add full SELinux support 2013-12-19 10:37:31 -08:00
zinject.8 Create mount.zfs, zinject, and zpios man pages. 2013-03-13 13:41:22 -07:00
zpool.8 Document the dedupditto pool property. 2013-11-08 10:26:17 -08:00
zstreamdump.8 Add zstreamdump(8) command to examine ZFS send streams. 2012-09-02 14:54:27 -07:00