|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
12e9ea |
policy_module(uwimap,1.4.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type imapd_t;
|
|
Chris PeBenito |
17de1b |
type imapd_exec_t;
|
|
Chris PeBenito |
8242f5 |
init_daemon_domain(imapd_t, imapd_exec_t)
|
|
Chris PeBenito |
8242f5 |
inetd_tcp_service_domain(imapd_t, imapd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type imapd_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(imapd_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type imapd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(imapd_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow imapd_t self:capability { dac_override net_bind_service setgid setuid sys_resource };
|
|
Chris PeBenito |
17de1b |
dontaudit imapd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow imapd_t self:process signal_perms;
|
|
Chris PeBenito |
c0868a |
allow imapd_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow imapd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
manage_dirs_pattern(imapd_t, imapd_tmp_t, imapd_tmp_t)
|
|
Chris PeBenito |
8242f5 |
manage_files_pattern(imapd_t, imapd_tmp_t, imapd_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(imapd_t, imapd_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
manage_files_pattern(imapd_t, imapd_var_run_t, imapd_var_run_t)
|
|
Chris PeBenito |
8242f5 |
files_pid_filetrans(imapd_t, imapd_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(imapd_t)
|
|
Chris PeBenito |
17de1b |
kernel_list_proc(imapd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(imapd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(imapd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_generic_if(imapd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(imapd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(imapd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(imapd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_pop_port(imapd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(imapd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_pop_server_packets(imapd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(imapd_t)
|
|
Chris PeBenito |
17de1b |
#urandom, for ssl
|
|
Chris PeBenito |
17de1b |
dev_read_rand(imapd_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
#read /etc/ for hostname nsswitch.conf
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(imapd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_domtrans_chk_passwd(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(imapd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(imapd_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(imapd_t)
|
|
Chris PeBenito |
17de1b |
# cjp: this is excessive, should be limited to the
|
|
Chris PeBenito |
17de1b |
# mail directories
|
|
Chris PeBenito |
17de1b |
userdom_priveleged_home_dir_manager(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_rw_spool(imapd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(imapd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
8242f5 |
tcpd_wrapped_domain(imapd_t, imapd_exec_t)
|
|
Chris PeBenito |
8242f5 |
')
|
|
Chris PeBenito |
8242f5 |
|
|
Chris PeBenito |
8242f5 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(imapd_t)
|
|
Chris PeBenito |
17de1b |
')
|