General Information
Viewing selinux contexts.
Three parts of a context label
List selinux context
ls -Z /var/www/ drwxr-xr-x. root root system_u:object_r:httpd_sys_script_exec_t:s0 cgi-bin drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 html
List all selinux contexts on system
semanage fcontext -l semanage fcontext -l | grep httpd
Identify a process context
ps auxZ | grep httpd system_u:system_r:httpd_t:s0 apache 1228 0.0 0.2 213228 2880 ? S 23:32 0:00 /usr/sbin/httpd -DFOREGROUND
While not part of an objective, being able to do this could help you on the examine if you are not sure what SELinux context to apply.
To install application specific SELinux man pages…
man -k _selinux
yum provides */sepolicy
yum install policycoreutils-devel
sepolicy manpage -a -p /usr/share/man/man8
mandb
man -k _selinux
Seinfo is a useful tool to discover available context types (among other things).
See what package provides it
yum provides /*seinfo
Install the package
yum install setools-console
View all the context types that are nfs related
seinfo -t | grep nfs