diff options
author | Matthew Thode <[email protected]> | 2013-12-19 00:24:14 -0600 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-12-19 10:37:31 -0800 |
commit | 11b9ec23b98eefe1e7bde0033dc8285f94cb0b90 (patch) | |
tree | 6be0568aea0dcbb0a76443768a70a26ae692b2bc /rpm/generic/zfs.spec.in | |
parent | d1d7e2689db9e03f11c069ebc9f1ba12829e5dac (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Closes #1504
Diffstat (limited to 'rpm/generic/zfs.spec.in')
-rw-r--r-- | rpm/generic/zfs.spec.in | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 6425d1e01..1e64ac18e 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -10,7 +10,6 @@ %bcond_with debug %bcond_with blkid -%bcond_with selinux Name: @PACKAGE@ @@ -38,9 +37,6 @@ BuildRequires: libuuid-devel %if %{with blkid} BuildRequires: libblkid-devel %endif -%if %{with selinux} -BuildRequires: libselinux-devel -%endif %endif %description @@ -89,11 +85,6 @@ image which is ZFS aware. %else %define blkid --without-blkid %endif -%if %{with selinux} - %define selinux --with-selinux -%else - %define selinux --without-selinux -%endif %setup -q @@ -104,8 +95,7 @@ image which is ZFS aware. --with-dracutdir=%{_dracutdir} \ --disable-static \ %{debug} \ - %{blkid} \ - %{selinux} + %{blkid} make %{?_smp_mflags} %install |