selinux-policy/policy/modules/services/postfixpolicyd.te
2007-11-07 20:17:44 +00:00

55 lines
1.7 KiB
Plaintext

policy_module(postfixpolicyd, 1.0.0)
########################################
#
# Declarations
#
type postfix_policyd_t;
type postfix_policyd_exec_t;
init_daemon_domain(postfix_policyd_t, postfix_policyd_exec_t)
type postfix_policyd_conf_t;
files_config_file(postfix_policyd_conf_t)
type postfix_policyd_var_run_t;
files_pid_file(postfix_policyd_var_run_t)
########################################
#
# Local Policy
#
allow postfix_policyd_t self:tcp_socket create_stream_socket_perms;
allow postfix_policyd_t self:capability { sys_resource sys_chroot setgid setuid };
allow postfix_policyd_t self:process setrlimit;
allow postfix_policyd_t self:unix_dgram_socket { connect create write};
allow postfix_policyd_t postfix_policyd_conf_t:dir list_dir_perms;
allow postfix_policyd_t postfix_policyd_conf_t:file read_file_perms;
allow postfix_policyd_t postfix_policyd_conf_t:lnk_file { getattr read };
manage_files_pattern(postfix_policyd_t, postfix_policyd_var_run_t, postfix_policyd_var_run_t)
files_pid_filetrans(postfix_policyd_t, postfix_policyd_var_run_t, file)
corenet_all_recvfrom_unlabeled(postfix_policyd_t)
corenet_tcp_sendrecv_generic_if(postfix_policyd_t)
corenet_tcp_sendrecv_all_nodes(postfix_policyd_t)
corenet_tcp_sendrecv_all_ports(postfix_policyd_t)
corenet_tcp_bind_all_nodes(postfix_policyd_t)
corenet_tcp_bind_postfix_policyd_port(postfix_policyd_t)
corenet_tcp_bind_mysqld_port(postfix_policyd_t)
files_read_etc_files(postfix_policyd_t)
files_read_usr_files(postfix_policyd_t)
libs_use_ld_so(postfix_policyd_t)
libs_use_shared_libs(postfix_policyd_t)
logging_send_syslog_msg(postfix_policyd_t)
miscfiles_read_localization(postfix_policyd_t)
sysnet_dns_name_resolve(postfix_policyd_t)