Content-type: text/html
Security-Enhanced Linux secures the zoneminder processes via flexible mandatory access control.
If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd serve for the zoneminder_t, you must turn on the authlogin_nsswitch_use_ldap boolean.
setsebool -P authlogin_nsswitch_use_ldap 1
If you want to allow confined applications to run with kerberos for the zoneminder_t, you must turn on the kerberos_enabled boolean.
setsebool -P kerberos_enabled 1
semanage fcontext -a -t public_content_t "/var/zoneminder(/.*)?"
restorecon -F -R -v /var/zoneminder
semanage fcontext -a -t public_content_rw_t "/var/zoneminder/incoming(/.*)?"
restorecon -F -R -v /var/zoneminder/incoming
If you want to allow ZoneMinder to modify public files used for public file transfer services., you must turn on the zoneminder_anon_write boolean.
setsebool -P zoneminder_anon_write 1
You can see the context of a file using the -Z option to lsP Policy governs the access confined processes have to these files. SELinux zoneminder policy is very flexible allowing users to setup their zoneminder processes in as secure a method as possible.
The following file types are defined for zoneminder:
zoneminder_exec_t
- Set files with the zoneminder_exec_t type, if you want to transition an executable to the zoneminder_t domain.
zoneminder_initrc_exec_t
- Set files with the zoneminder_initrc_exec_t type, if you want to transition an executable to the zoneminder_initrc_t domain.
zoneminder_log_t
- Set files with the zoneminder_log_t type, if you want to treat the data as zoneminder log data, usually stored under the /var/log directory.
zoneminder_spool_t
- Set files with the zoneminder_spool_t type, if you want to store the zoneminder files under the /var/spool directory.
zoneminder_tmpfs_t
- Set files with the zoneminder_tmpfs_t type, if you want to store zoneminder files on a tmpfs file system.
zoneminder_var_lib_t
- Set files with the zoneminder_var_lib_t type, if you want to store the zoneminder files under the /var/lib directory.
zoneminder_var_run_t
- Set files with the zoneminder_var_run_t type, if you want to store the zoneminder files under the /run directory.
Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels.