Chris PeBenito 0fbfa5
#DESC Dovecot POP and IMAP servers
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# Author:  Russell Coker <russell@coker.com.au>
Chris PeBenito 0fbfa5
# X-Debian-Packages: dovecot-imapd, dovecot-pop3d
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
daemon_domain(dovecot, `, privhome')
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow dovecot_t dovecot_var_run_t:sock_file create_file_perms;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
can_exec(dovecot_t, dovecot_exec_t)
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
type dovecot_cert_t, file_type, sysadmfile;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow dovecot_t self:capability { dac_override dac_read_search chown net_bind_service setgid setuid sys_chroot };
Chris PeBenito 0fbfa5
allow dovecot_t self:process setrlimit;
Chris PeBenito 0fbfa5
can_network_tcp(dovecot_t)
Chris PeBenito 0fbfa5
can_ypbind(dovecot_t)
Chris PeBenito 0fbfa5
allow dovecot_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 0fbfa5
allow dovecot_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 0fbfa5
can_unix_connect(dovecot_t, self)
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow dovecot_t etc_t:file { getattr read };
Chris PeBenito 0fbfa5
allow dovecot_t initrc_var_run_t:file getattr;
Chris PeBenito 0fbfa5
allow dovecot_t bin_t:dir { getattr search };
Chris PeBenito 0fbfa5
can_exec(dovecot_t, bin_t)
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow dovecot_t pop_port_t:tcp_socket name_bind;
Chris PeBenito 0fbfa5
allow dovecot_t urandom_device_t:chr_file read;
Chris PeBenito 0fbfa5
allow dovecot_t cert_t:dir search;
Chris PeBenito 0fbfa5
allow dovecot_t dovecot_cert_t:file { getattr read };
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow dovecot_t { self proc_t }:file { getattr read };
Chris PeBenito 0fbfa5
allow dovecot_t self:fifo_file rw_file_perms;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
can_kerberos(dovecot_t)
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow dovecot_t tmp_t:dir search;
Chris PeBenito 0fbfa5
rw_dir_file(dovecot_t, mail_spool_t)
Chris PeBenito 0fbfa5
allow dovecot_t mail_spool_t:lnk_file read;
Chris PeBenito 0fbfa5
allow dovecot_t var_spool_t:dir { search };
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
daemon_sub_domain(dovecot_t, dovecot_auth, `, auth_chkpwd')
Chris PeBenito 0fbfa5
allow dovecot_auth_t self:process { fork signal_perms };
Chris PeBenito 0fbfa5
allow dovecot_auth_t dovecot_t:unix_stream_socket { getattr accept read write ioctl };
Chris PeBenito 0fbfa5
allow dovecot_auth_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 0fbfa5
allow dovecot_auth_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 0fbfa5
allow dovecot_auth_t self:fifo_file rw_file_perms;
Chris PeBenito 0fbfa5
allow dovecot_auth_t urandom_device_t:chr_file { getattr read };
Chris PeBenito 0fbfa5
allow dovecot_auth_t etc_t:file { getattr read };
Chris PeBenito 0fbfa5
allow dovecot_auth_t { self proc_t }:file { getattr read };
Chris PeBenito 0fbfa5
read_locale(dovecot_auth_t)
Chris PeBenito 0fbfa5
read_sysctl(dovecot_auth_t)
Chris PeBenito 0fbfa5
allow dovecot_auth_t sysctl_t:dir search;
Chris PeBenito 0fbfa5
dontaudit dovecot_auth_t selinux_config_t:dir search;
Chris PeBenito 0fbfa5