2008-12-10 19:38:10 +00:00
|
|
|
policy_module(qmail, 1.5.0)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
attribute qmail_user_domains;
|
|
|
|
|
|
|
|
type qmail_alias_home_t;
|
|
|
|
files_type(qmail_alias_home_t)
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_clean, qmail_start_t)
|
|
|
|
|
|
|
|
type qmail_etc_t;
|
2008-08-11 14:03:36 +00:00
|
|
|
files_config_file(qmail_etc_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
type qmail_exec_t;
|
|
|
|
files_type(qmail_exec_t)
|
|
|
|
|
|
|
|
type qmail_inject_t, qmail_user_domains;
|
|
|
|
type qmail_inject_exec_t;
|
|
|
|
domain_type(qmail_inject_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
domain_entry_file(qmail_inject_t, qmail_inject_exec_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
mta_mailserver_user_agent(qmail_inject_t)
|
|
|
|
role system_r types qmail_inject_t;
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_local, qmail_lspawn_t)
|
|
|
|
mta_mailserver_delivery(qmail_local_t)
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_lspawn, qmail_start_t)
|
|
|
|
mta_mailserver_delivery(qmail_lspawn_t)
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_queue, qmail_inject_t)
|
|
|
|
typeattribute qmail_queue_t qmail_user_domains;
|
|
|
|
mta_mailserver_user_agent(qmail_queue_t)
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_remote, qmail_rspawn_t)
|
|
|
|
mta_mailserver_sender(qmail_remote_t)
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_rspawn, qmail_start_t)
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_send, qmail_start_t)
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_smtpd, qmail_tcp_env_t)
|
|
|
|
|
|
|
|
qmail_child_domain_template(qmail_splogger, qmail_start_t)
|
|
|
|
|
|
|
|
type qmail_spool_t;
|
|
|
|
files_type(qmail_spool_t)
|
|
|
|
|
|
|
|
type qmail_start_t;
|
|
|
|
type qmail_start_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(qmail_start_t, qmail_start_exec_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
type qmail_tcp_env_t;
|
|
|
|
type qmail_tcp_env_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
application_domain(qmail_tcp_env_t, qmail_tcp_env_exec_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-clean local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component cleans up the queue directory
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
read_files_pattern(qmail_clean_t, qmail_spool_t, qmail_spool_t)
|
|
|
|
delete_files_pattern(qmail_clean_t, qmail_spool_t, qmail_spool_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-inject local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component preprocesses mail from stdin and invokes qmail-queue
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_inject_t self:process signal_perms;
|
2010-09-23 12:06:19 +00:00
|
|
|
allow qmail_inject_t self:fifo_file write_fifo_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_inject_t qmail_queue_exec_t:file read_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
corecmd_search_bin(qmail_inject_t)
|
|
|
|
|
|
|
|
files_search_var(qmail_inject_t)
|
|
|
|
|
2008-08-11 14:03:36 +00:00
|
|
|
miscfiles_read_localization(qmail_inject_t)
|
|
|
|
|
2006-04-05 15:32:38 +00:00
|
|
|
qmail_read_config(qmail_inject_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-local local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component delivers a mail message
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_local_t self:process signal_perms;
|
2010-09-23 12:06:19 +00:00
|
|
|
allow qmail_local_t self:fifo_file write_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
allow qmail_local_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(qmail_local_t, qmail_alias_home_t, qmail_alias_home_t)
|
|
|
|
manage_files_pattern(qmail_local_t, qmail_alias_home_t, qmail_alias_home_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2008-08-11 14:03:36 +00:00
|
|
|
can_exec(qmail_local_t, qmail_local_exec_t)
|
|
|
|
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_local_t qmail_queue_exec_t:file read_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow qmail_local_t qmail_spool_t:file read_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(qmail_local_t)
|
|
|
|
|
2008-08-11 14:03:36 +00:00
|
|
|
corecmd_exec_bin(qmail_local_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
corecmd_exec_shell(qmail_local_t)
|
|
|
|
|
|
|
|
files_read_etc_files(qmail_local_t)
|
|
|
|
files_read_etc_runtime_files(qmail_local_t)
|
|
|
|
|
2008-08-11 14:03:36 +00:00
|
|
|
auth_use_nsswitch(qmail_local_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(qmail_local_t)
|
|
|
|
|
2006-04-05 15:32:38 +00:00
|
|
|
mta_append_spool(qmail_local_t)
|
|
|
|
|
|
|
|
qmail_domtrans_queue(qmail_local_t)
|
|
|
|
|
2010-08-31 14:51:10 +00:00
|
|
|
optional_policy(`
|
|
|
|
uucp_domtrans(qmail_local_t)
|
|
|
|
')
|
|
|
|
|
2008-11-11 16:38:34 +00:00
|
|
|
optional_policy(`
|
|
|
|
spamassassin_domtrans_client(qmail_local_t)
|
|
|
|
')
|
|
|
|
|
2006-04-05 15:32:38 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-lspawn local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component schedules local deliveries
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_lspawn_t self:capability { setuid setgid };
|
|
|
|
allow qmail_lspawn_t self:process signal_perms;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_lspawn_t self:fifo_file rw_fifo_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
allow qmail_lspawn_t self:unix_stream_socket create_socket_perms;
|
|
|
|
|
|
|
|
can_exec(qmail_lspawn_t, qmail_exec_t)
|
|
|
|
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_lspawn_t qmail_local_exec_t:file read_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
read_files_pattern(qmail_lspawn_t, qmail_spool_t, qmail_spool_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_search_bin(qmail_lspawn_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
files_read_etc_files(qmail_lspawn_t)
|
|
|
|
files_search_pids(qmail_lspawn_t)
|
|
|
|
files_search_tmp(qmail_lspawn_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-queue local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component places a mail in a delivery queue, later to be processed by qmail-send
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_queue_t qmail_lspawn_t:fd use;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_queue_t qmail_lspawn_t:fifo_file write_fifo_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2010-09-23 12:06:19 +00:00
|
|
|
allow qmail_queue_t qmail_smtpd_t:process sigchld;
|
2006-04-05 15:32:38 +00:00
|
|
|
allow qmail_queue_t qmail_smtpd_t:fd use;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_queue_t qmail_smtpd_t:fifo_file read_fifo_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(qmail_queue_t, qmail_spool_t, qmail_spool_t)
|
|
|
|
manage_files_pattern(qmail_queue_t, qmail_spool_t, qmail_spool_t)
|
|
|
|
rw_fifo_files_pattern(qmail_queue_t, qmail_spool_t, qmail_spool_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2008-08-11 14:03:36 +00:00
|
|
|
corecmd_exec_bin(qmail_queue_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(qmail_queue_t)
|
|
|
|
|
2006-04-05 15:32:38 +00:00
|
|
|
optional_policy(`
|
|
|
|
daemontools_ipc_domain(qmail_queue_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-remote local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component sends mail via SMTP
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_remote_t self:tcp_socket create_socket_perms;
|
|
|
|
allow qmail_remote_t self:udp_socket create_socket_perms;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
rw_files_pattern(qmail_remote_t, qmail_spool_t, qmail_spool_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(qmail_remote_t)
|
|
|
|
corenet_all_recvfrom_netlabel(qmail_remote_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(qmail_remote_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(qmail_remote_t)
|
|
|
|
corenet_tcp_sendrecv_generic_node(qmail_remote_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(qmail_remote_t)
|
|
|
|
corenet_tcp_sendrecv_smtp_port(qmail_remote_t)
|
|
|
|
corenet_udp_sendrecv_dns_port(qmail_remote_t)
|
|
|
|
corenet_tcp_connect_smtp_port(qmail_remote_t)
|
2006-05-30 19:46:34 +00:00
|
|
|
corenet_sendrecv_smtp_client_packets(qmail_remote_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
dev_read_rand(qmail_remote_t)
|
|
|
|
dev_read_urand(qmail_remote_t)
|
|
|
|
|
|
|
|
sysnet_read_config(qmail_remote_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-rspawn local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component scedules remote deliveries
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_rspawn_t self:process signal_perms;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_rspawn_t self:fifo_file read_fifo_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_rspawn_t qmail_remote_exec_t:file read_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
rw_files_pattern(qmail_rspawn_t, qmail_spool_t, qmail_spool_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
corecmd_search_bin(qmail_rspawn_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-send local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component delivers mail messages from the queue
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_send_t self:process signal_perms;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_send_t self:fifo_file write_fifo_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(qmail_send_t, qmail_spool_t, qmail_spool_t)
|
|
|
|
manage_files_pattern(qmail_send_t, qmail_spool_t, qmail_spool_t)
|
|
|
|
read_fifo_files_pattern(qmail_send_t, qmail_spool_t, qmail_spool_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
qmail_domtrans_queue(qmail_send_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
daemontools_ipc_domain(qmail_send_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-smtpd local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component receives mails via SMTP
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_smtpd_t self:process signal_perms;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_smtpd_t self:fifo_file write_fifo_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
allow qmail_smtpd_t self:tcp_socket create_socket_perms;
|
|
|
|
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_smtpd_t qmail_queue_exec_t:file read_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
dev_read_rand(qmail_smtpd_t)
|
|
|
|
dev_read_urand(qmail_smtpd_t)
|
|
|
|
|
|
|
|
qmail_domtrans_queue(qmail_smtpd_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
daemontools_ipc_domain(qmail_smtpd_t)
|
|
|
|
')
|
|
|
|
|
2008-11-11 16:38:34 +00:00
|
|
|
optional_policy(`
|
|
|
|
kerberos_keytab_template(qmail, qmail_smtpd_t)
|
|
|
|
')
|
|
|
|
|
2006-04-05 15:32:38 +00:00
|
|
|
optional_policy(`
|
|
|
|
ucspitcp_service_domain(qmail_smtpd_t, qmail_smtpd_exec_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# splogger local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component creates entries in syslog
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_splogger_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
|
|
|
|
files_read_etc_files(qmail_splogger_t)
|
|
|
|
|
|
|
|
init_dontaudit_use_script_fds(qmail_splogger_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(qmail_splogger_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# qmail-start local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component starts up the mail delivery component
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
allow qmail_start_t self:capability { setgid setuid };
|
|
|
|
dontaudit qmail_start_t self:capability sys_tty_config;
|
|
|
|
allow qmail_start_t self:process signal_perms;
|
2010-09-23 12:06:19 +00:00
|
|
|
allow qmail_start_t self:fifo_file rw_fifo_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
can_exec(qmail_start_t, qmail_start_exec_t)
|
|
|
|
|
|
|
|
corecmd_search_bin(qmail_start_t)
|
|
|
|
|
|
|
|
files_search_var(qmail_start_t)
|
|
|
|
|
|
|
|
qmail_read_config(qmail_start_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
daemontools_service_domain(qmail_start_t, qmail_start_exec_t)
|
|
|
|
daemontools_ipc_domain(qmail_start_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# tcp-env local policy
|
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
Whitespace, newline and tab fixes.
2010-09-23 07:53:57 +00:00
|
|
|
# this component sets up TCP-related environment variables
|
2006-04-05 15:32:38 +00:00
|
|
|
#
|
|
|
|
|
2008-10-16 16:09:20 +00:00
|
|
|
allow qmail_tcp_env_t qmail_smtpd_exec_t:file read_file_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_search_bin(qmail_tcp_env_t)
|
2006-04-05 15:32:38 +00:00
|
|
|
|
|
|
|
sysnet_read_config(qmail_tcp_env_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
inetd_tcp_service_domain(qmail_tcp_env_t, qmail_tcp_env_exec_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
ucspitcp_service_domain(qmail_tcp_env_t, qmail_tcp_env_exec_t)
|
|
|
|
')
|