|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
693d4a |
policy_module(postfix,1.2.14)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
attribute postfix_user_domains;
|
|
Chris PeBenito |
17de1b |
# domains that transition to the
|
|
Chris PeBenito |
17de1b |
# postfix user domains
|
|
Chris PeBenito |
17de1b |
attribute postfix_user_domtrans;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_server_domain_template(bounce)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_spool_bounce_t;
|
|
Chris PeBenito |
17de1b |
files_type(postfix_spool_bounce_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_server_domain_template(cleanup)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_etc_t;
|
|
Chris PeBenito |
17de1b |
files_type(postfix_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_exec_t;
|
|
Chris PeBenito |
17de1b |
corecmd_executable_file(postfix_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_server_domain_template(local)
|
|
Chris PeBenito |
17de1b |
mta_mailserver_delivery(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_local_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(postfix_local_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Program for creating database files
|
|
Chris PeBenito |
17de1b |
type postfix_map_t;
|
|
Chris PeBenito |
17de1b |
type postfix_map_exec_t;
|
|
Chris PeBenito |
17de1b |
domain_type(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
domain_entry_file(postfix_map_t,postfix_map_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_map_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(postfix_map_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_domain_template(master)
|
|
Chris PeBenito |
17de1b |
typealias postfix_master_t alias postfix_t;
|
|
Chris PeBenito |
17de1b |
# alias is a hack to make the disable trans bool
|
|
Chris PeBenito |
17de1b |
# generation macro work
|
|
Chris PeBenito |
17de1b |
mta_mailserver(postfix_t,postfix_master_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_server_domain_template(pickup)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_server_domain_template(pipe)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_user_domain_template(postdrop)
|
|
Chris PeBenito |
17de1b |
mta_mailserver_user_agent(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_user_domain_template(postqueue)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_private_t;
|
|
Chris PeBenito |
17de1b |
files_type(postfix_private_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_prng_t;
|
|
Chris PeBenito |
17de1b |
files_type(postfix_prng_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_server_domain_template(qmgr)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_user_domain_template(showq)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_server_domain_template(smtp)
|
|
Chris PeBenito |
17de1b |
mta_mailserver_sender(postfix_smtp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_server_domain_template(smtpd)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_spool_t;
|
|
Chris PeBenito |
17de1b |
files_type(postfix_spool_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_spool_maildrop_t;
|
|
Chris PeBenito |
17de1b |
files_type(postfix_spool_maildrop_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_spool_flush_t;
|
|
Chris PeBenito |
17de1b |
files_type(postfix_spool_flush_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_public_t;
|
|
Chris PeBenito |
17de1b |
files_type(postfix_public_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type postfix_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(postfix_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix master process local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# chown is to set the correct ownership of queue dirs
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t self:capability { chown dac_override kill setgid setuid net_bind_service sys_tty_config };
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_etc_t:file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
can_exec(postfix_master_t,postfix_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_map_exec_t:file rx_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_postdrop_exec_t:file getattr;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_postqueue_exec_t:file getattr;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_private_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_private_t:sock_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_private_t:fifo_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_prng_t:file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_public_t:fifo_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_public_t:sock_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_public_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# allow access to deferred queue and allow removing bogus incoming entries
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_bounce_t:dir manage_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_bounce_t:file getattr;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_flush_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_flush_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_flush_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_maildrop_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_spool_maildrop_t:file { unlink rename getattr };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_all_sysctls(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corenet_non_ipsec_sendrecv(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_amavisd_send_port(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_smtp_port(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_amavisd_send_server_packets(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_smtp_server_packets(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for a find command
|
|
Chris PeBenito |
17de1b |
selinux_dontaudit_search_fs(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_ls(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_sbin(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
465510 |
miscfiles_read_man_pages(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
# postfix does a "find" on startup for some reason - keep it quiet
|
|
Chris PeBenito |
17de1b |
seutil_dontaudit_search_config(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_rw_aliases(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
mta_read_sendmail_bin(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8708d9 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
8708d9 |
term_dontaudit_use_unallocated_ttys(postfix_master_t)
|
|
Chris PeBenito |
8708d9 |
term_dontaudit_use_generic_ptys(postfix_master_t)
|
|
Chris PeBenito |
8708d9 |
')
|
|
Chris PeBenito |
8708d9 |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
cyrus_stream_connect(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# for postalias
|
|
Chris PeBenito |
17de1b |
mailman_manage_data_files(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(postfix_master_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
###########################################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Partially converted rules. THESE ARE ONLY TEMPORARY
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_redhat',`
|
|
Chris PeBenito |
17de1b |
# for newer main.cf that uses /etc/aliases
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:sock_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:fifo_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
type_transition postfix_master_t etc_t:{ file lnk_file sock_file fifo_file } etc_aliases_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_etc_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:sock_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t etc_aliases_t:fifo_file create_file_perms;
|
|
Chris PeBenito |
17de1b |
type_transition postfix_master_t postfix_etc_t:{ dir file lnk_file sock_file fifo_file } etc_aliases_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# end partially converted rules
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix bounce local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t self:capability dac_read_search;
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t postfix_public_t:sock_file write;
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t postfix_public_t:dir search;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t postfix_spool_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t postfix_spool_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t postfix_spool_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t postfix_spool_bounce_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t postfix_spool_bounce_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_bounce_t postfix_spool_bounce_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix cleanup local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t self:process setrlimit;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# connect to master process
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_master_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_private_t:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_private_t:sock_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_public_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_public_t:sock_file { getattr write };
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_public_t:dir search;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_spool_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_spool_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_spool_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_cleanup_t postfix_spool_bounce_t:dir r_dir_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
a5e213 |
corecmd_exec_bin(postfix_cleanup_t)
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix local local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t self:process { setsched setrlimit };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t postfix_local_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t postfix_local_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(postfix_local_t, postfix_local_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# connect to master process
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t postfix_master_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t postfix_public_t:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t postfix_public_t:sock_file write;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for .forward - maybe we need a new type for it?
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t postfix_private_t:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t postfix_private_t:sock_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_local_t postfix_spool_t:file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_read_aliases(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
mta_delete_spool(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
# For reading spamassasin
|
|
Chris PeBenito |
17de1b |
mta_read_config(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
a5e213 |
clamav_search_lib(postfix_local_t)
|
|
Chris PeBenito |
a5e213 |
')
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
a5e213 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# for postalias
|
|
Chris PeBenito |
17de1b |
mailman_manage_data_files(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
procmail_domtrans(postfix_local_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix map local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t self:capability setgid;
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t postfix_etc_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t postfix_etc_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t postfix_etc_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t postfix_map_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_map_t postfix_map_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(postfix_map_t, postfix_map_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
kernel_dontaudit_list_proc(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
kernel_dontaudit_read_system_state(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corenet_non_ipsec_sendrecv(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_list_bin(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_bin_symlinks(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_bin_files(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_bin_pipes(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_bin_sockets(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_list_sbin(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_sbin_symlinks(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_sbin_files(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_sbin_pipes(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
corecmd_read_sbin_sockets(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_list_home(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_search_var(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_read_config(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
8708d9 |
term_dontaudit_use_unallocated_ttys(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_generic_ptys(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
tunable_policy(`read_default_t',`
|
|
Chris PeBenito |
17de1b |
files_list_default(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
files_read_default_files(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
files_read_default_symlinks(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
files_read_default_sockets(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
files_read_default_pipes(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
locallogin_dontaudit_use_fds(postfix_map_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# a "run" interface needs to be
|
|
Chris PeBenito |
17de1b |
# added, and have sysadm_t use it
|
|
Chris PeBenito |
17de1b |
# in a optional_policy block.
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix pickup local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_master_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_private_t:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_private_t:sock_file write;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_public_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_public_t:sock_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_public_t:dir search;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_list_spool(postfix_pickup_t)
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_spool_maildrop_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_spool_maildrop_t:file r_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_pickup_t postfix_spool_maildrop_t:file unlink;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix pipe local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_pipe_t self:fifo_file { read write };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_pipe_t postfix_private_t:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_pipe_t postfix_private_t:sock_file write;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_pipe_t postfix_public_t:fifo_file { getattr write };
|
|
Chris PeBenito |
17de1b |
allow postfix_pipe_t postfix_public_t:dir search;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_pipe_t postfix_spool_t:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_pipe_t postfix_spool_t:file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
procmail_domtrans(postfix_pipe_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
mailman_domtrans_queue(postfix_pipe_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix postdrop local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# usually it does not need a UDP socket
|
|
Chris PeBenito |
17de1b |
allow postfix_postdrop_t self:capability sys_resource;
|
|
Chris PeBenito |
17de1b |
allow postfix_postdrop_t self:tcp_socket create;
|
|
Chris PeBenito |
17de1b |
allow postfix_postdrop_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_postdrop_t postfix_public_t:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_postdrop_t postfix_public_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_list_spool(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
allow postfix_postdrop_t postfix_spool_maildrop_t:dir rw_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_postdrop_t postfix_spool_maildrop_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_all_user_ptys(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_all_user_ttys(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_dns_name_resolve(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_rw_user_mail_stream_sockets(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy', `
|
|
Chris PeBenito |
17de1b |
term_use_unallocated_ttys(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
term_use_generic_ptys(postfix_postdrop_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
cron_system_entry(postfix_postdrop_t, postfix_postdrop_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
ppp_use_fds(postfix_postqueue_t)
|
|
Chris PeBenito |
17de1b |
ppp_sigchld(postfix_postqueue_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
#######################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix postqueue local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t self:tcp_socket create;
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t self:udp_socket { create ioctl };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# wants to write to /var/spool/postfix/public/showq
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t postfix_public_t:sock_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t postfix_master_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t postfix_public_t:dir search;
|
|
Chris PeBenito |
17de1b |
# write to /var/spool/postfix/public/qmgr
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t postfix_public_t:fifo_file { getattr write };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_auto_trans(postfix_master_t, postfix_postqueue_exec_t, postfix_postqueue_t)
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_postqueue_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t postfix_master_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t postfix_master_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t postfix_master_t:process sigchld;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_auto_trans(postfix_postqueue_t, postfix_showq_exec_t, postfix_showq_t)
|
|
Chris PeBenito |
17de1b |
allow postfix_postqueue_t postfix_showq_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_postqueue_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_postqueue_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_postqueue_t:process sigchld;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# to write the mailq output, it really should not need read access!
|
|
Chris PeBenito |
17de1b |
term_use_all_user_ptys(postfix_postqueue_t)
|
|
Chris PeBenito |
17de1b |
term_use_all_user_ttys(postfix_postqueue_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_sigchld_script(postfix_postqueue_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_fds(postfix_postqueue_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_dontaudit_read_config(postfix_postqueue_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix qmgr local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_master_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_private_t:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_private_t:sock_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_public_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_public_t:sock_file write;
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_public_t:dir search;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for /var/spool/postfix/active
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_spool_t:dir create_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_spool_t:file create_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_spool_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_spool_bounce_t:dir { getattr read search };
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_spool_bounce_t:file { read getattr };
|
|
Chris PeBenito |
17de1b |
allow postfix_qmgr_t postfix_spool_bounce_t:lnk_file { getattr read };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
a5e213 |
corecmd_exec_bin(postfix_qmgr_t)
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix showq local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t self:capability { setuid setgid };
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# the following auto_trans is usually in postfix server domain
|
|
Chris PeBenito |
17de1b |
domain_auto_trans(postfix_master_t, postfix_showq_exec_t, postfix_showq_t)
|
|
Chris PeBenito |
17de1b |
allow postfix_master_t postfix_showq_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_master_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_master_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_master_t:process sigchld;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_master_t:unix_stream_socket { accept rw_socket_perms };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_spool_t:file r_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
postfix_list_spool(postfix_showq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_spool_maildrop_t:dir { getattr read search };
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_spool_maildrop_t:file { read getattr };
|
|
Chris PeBenito |
17de1b |
allow postfix_showq_t postfix_spool_maildrop_t:lnk_file { getattr read };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# to write the mailq output, it really should not need read access!
|
|
Chris PeBenito |
17de1b |
term_use_all_user_ptys(postfix_showq_t)
|
|
Chris PeBenito |
17de1b |
term_use_all_user_ttys(postfix_showq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_dns_name_resolve(postfix_showq_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix smtp delivery local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# connect to master process
|
|
Chris PeBenito |
17de1b |
allow postfix_smtp_t postfix_master_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
allow postfix_smtp_t { postfix_private_t postfix_public_t }:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_smtp_t { postfix_private_t postfix_public_t }:sock_file write;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow postfix_smtp_t postfix_spool_t:file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Postfix smtpd local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
allow postfix_smtpd_t postfix_master_t:tcp_socket rw_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# connect to master process
|
|
Chris PeBenito |
17de1b |
allow postfix_smtpd_t postfix_master_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
allow postfix_smtpd_t { postfix_private_t postfix_public_t }:dir search;
|
|
Chris PeBenito |
17de1b |
allow postfix_smtpd_t { postfix_private_t postfix_public_t }:sock_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for prng_exch
|
|
Chris PeBenito |
17de1b |
allow postfix_smtpd_t postfix_spool_t:file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow { postfix_smtp_t postfix_smtpd_t } postfix_prng_t:file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
a5e213 |
corecmd_exec_bin(postfix_smtpd_t)
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
17de1b |
# for OpenSSL certificates
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(postfix_smtpd_t)
|
|
Chris PeBenito |
17de1b |
mta_read_aliases(postfix_smtpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
465510 |
postgrey_stream_connect(postfix_smtpd_t)
|
|
Chris PeBenito |
465510 |
')
|
|
Chris PeBenito |
465510 |
|
|
Chris PeBenito |
465510 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
sasl_connect(postfix_smtpd_t)
|
|
Chris PeBenito |
17de1b |
')
|