mirror_zfs/lib/libspl/include
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
..
ia32 Remove autotools products 2012-08-27 11:47:44 -07:00
rpc cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
sys Add full SELinux support 2013-12-19 10:37:31 -08:00
util cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
assert.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
atomic.h Add atomic_sub_* functions to libspl. 2012-10-17 08:56:37 -07:00
attr.h Add linux libspl support 2010-08-31 13:41:59 -07:00
devid.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libdevinfo.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libgen.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libshare.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
limits.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
locale.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
Makefile.am Fix implicit declaration of 'mkdirp' 2011-07-01 13:39:47 -07:00
note.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
priv.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
statcommon.h Add linux libspl support 2010-08-31 13:41:59 -07:00
stdio.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
stdlib.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
string.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
strings.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
stropts.h Add linux libspl support 2010-08-31 13:41:59 -07:00
synch.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
thread.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
tzfile.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
ucred.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
umem.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
unistd.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
zone.h cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00