Content-type: text/html
Security-Enhanced Linux secures the dovecot 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 dovecot_auth_t, dovecot_t, dovecot_deliver_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 dovecot_auth_t, dovecot_t, dovecot_deliver_t, you must turn on the kerberos_enabled boolean.
setsebool -P kerberos_enabled 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 dovecot policy is very flexible allowing users to setup their dovecot processes in as secure a method as possible.
The following file types are defined for dovecot:
dovecot_auth_exec_t
- Set files with the dovecot_auth_exec_t type, if you want to transition an executable to the dovecot_auth_t domain.
dovecot_auth_tmp_t
- Set files with the dovecot_auth_tmp_t type, if you want to store dovecot auth temporary files in the /tmp directories.
dovecot_cert_t
- Set files with the dovecot_cert_t type, if you want to treat the files as dovecot certificate data.
dovecot_deliver_exec_t
- Set files with the dovecot_deliver_exec_t type, if you want to transition an executable to the dovecot_deliver_t domain.
dovecot_deliver_tmp_t
- Set files with the dovecot_deliver_tmp_t type, if you want to store dovecot deliver temporary files in the /tmp directories.
dovecot_etc_t
- Set files with the dovecot_etc_t type, if you want to store dovecot files in the /etc directories.
dovecot_exec_t
- Set files with the dovecot_exec_t type, if you want to transition an executable to the dovecot_t domain.
dovecot_initrc_exec_t
- Set files with the dovecot_initrc_exec_t type, if you want to transition an executable to the dovecot_initrc_t domain.
dovecot_passwd_t
- Set files with the dovecot_passwd_t type, if you want to treat the files as dovecot passwd data.
dovecot_spool_t
- Set files with the dovecot_spool_t type, if you want to store the dovecot files under the /var/spool directory.
dovecot_t_keytab_t
- Set files with the dovecot_t_keytab_t type, if you want to treat the files as kerberos keytab files.
dovecot_tmp_t
- Set files with the dovecot_tmp_t type, if you want to store dovecot temporary files in the /tmp directories.
dovecot_var_lib_t
- Set files with the dovecot_var_lib_t type, if you want to store the dovecot files under the /var/lib directory.
dovecot_var_log_t
- Set files with the dovecot_var_log_t type, if you want to treat the data as dovecot var log data, usually stored under the /var/log directory.
dovecot_var_run_t
- Set files with the dovecot_var_run_t type, if you want to store the dovecot files under the /run directory.
Note: File context can be temporarily modified with the chcon command. If you want to permanently c