Chris PeBenito 9570b2
policy_module(postfixpolicyd, 1.2.0)
Chris PeBenito 4605ad
Chris PeBenito 4605ad
########################################
Chris PeBenito 4605ad
#
Chris PeBenito 4605ad
# Declarations
Chris PeBenito 4605ad
#
Chris PeBenito 4605ad
Chris PeBenito 4605ad
type postfix_policyd_t;
Chris PeBenito 4605ad
type postfix_policyd_exec_t;
Chris PeBenito 4605ad
init_daemon_domain(postfix_policyd_t, postfix_policyd_exec_t)
Chris PeBenito 4605ad
Chris PeBenito 4605ad
type postfix_policyd_conf_t;
Chris PeBenito 4605ad
files_config_file(postfix_policyd_conf_t)
Chris PeBenito 4605ad
Chris PeBenito e87221
type postfix_policyd_initrc_exec_t;
Chris PeBenito e87221
init_script_file(postfix_policyd_initrc_exec_t)
Chris PeBenito e87221
Chris PeBenito 4605ad
type postfix_policyd_var_run_t;
Chris PeBenito 4605ad
files_pid_file(postfix_policyd_var_run_t)
Chris PeBenito 4605ad
Chris PeBenito 4605ad
########################################
Chris PeBenito 4605ad
#
Chris PeBenito 4605ad
# Local Policy
Chris PeBenito 4605ad
#
Chris PeBenito 4605ad
Chris PeBenito 4605ad
allow postfix_policyd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 4605ad
allow postfix_policyd_t self:capability { sys_resource sys_chroot setgid setuid };
Chris PeBenito 4605ad
allow postfix_policyd_t self:process setrlimit;
Chris PeBenito 4605ad
allow postfix_policyd_t self:unix_dgram_socket { connect create write};
Chris PeBenito 4605ad
Chris PeBenito 4605ad
allow postfix_policyd_t postfix_policyd_conf_t:dir list_dir_perms;
Chris PeBenito 4605ad
allow postfix_policyd_t postfix_policyd_conf_t:file read_file_perms;
Chris PeBenito 4605ad
allow postfix_policyd_t postfix_policyd_conf_t:lnk_file { getattr read };
Chris PeBenito 4605ad
Chris PeBenito 4605ad
manage_files_pattern(postfix_policyd_t, postfix_policyd_var_run_t, postfix_policyd_var_run_t)
Chris PeBenito 4605ad
files_pid_filetrans(postfix_policyd_t, postfix_policyd_var_run_t, file)
Chris PeBenito 4605ad
Chris PeBenito 4605ad
corenet_all_recvfrom_unlabeled(postfix_policyd_t)
Chris PeBenito 4605ad
corenet_tcp_sendrecv_generic_if(postfix_policyd_t)
Chris PeBenito c12621
corenet_tcp_sendrecv_generic_node(postfix_policyd_t)
Chris PeBenito 4605ad
corenet_tcp_sendrecv_all_ports(postfix_policyd_t)
Chris PeBenito c12621
corenet_tcp_bind_generic_node(postfix_policyd_t)
Chris PeBenito 4605ad
corenet_tcp_bind_postfix_policyd_port(postfix_policyd_t)
Chris PeBenito 4605ad
corenet_tcp_bind_mysqld_port(postfix_policyd_t)
Chris PeBenito 4605ad
Chris PeBenito 4605ad
files_read_etc_files(postfix_policyd_t)
Chris PeBenito 4605ad
files_read_usr_files(postfix_policyd_t)
Chris PeBenito 4605ad
Chris PeBenito 4605ad
logging_send_syslog_msg(postfix_policyd_t)
Chris PeBenito 4605ad
Chris PeBenito 4605ad
miscfiles_read_localization(postfix_policyd_t)
Chris PeBenito 4605ad
Chris PeBenito 4605ad
sysnet_dns_name_resolve(postfix_policyd_t)