Blame mls/domains/program/fetchmail.te
|
Chris PeBenito |
31b7c0 |
#DESC fetchmail - remote-mail retrieval utility
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Author: Greg Norris <haphazard@kc.rr.com>
|
|
Chris PeBenito |
31b7c0 |
# X-Debian-Packages: fetchmail
|
|
Chris PeBenito |
31b7c0 |
# Depends: mta.te
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Note: This policy is only required when running fetchmail in daemon mode.
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
#################################
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Rules for the fetchmail_t domain.
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
daemon_domain(fetchmail);
|
|
Chris PeBenito |
31b7c0 |
type fetchmail_etc_t, file_type, sysadmfile;
|
|
Chris PeBenito |
31b7c0 |
type fetchmail_uidl_cache_t, file_type, sysadmfile;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# misc. requirements
|
|
Chris PeBenito |
31b7c0 |
allow fetchmail_t self:process setrlimit;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# network-related goodies
|
|
Chris PeBenito |
31b7c0 |
can_network_client_tcp(fetchmail_t, { dns_port_t pop_port_t smtp_port_t })
|
|
Chris PeBenito |
31b7c0 |
can_network_udp(fetchmail_t, dns_port_t)
|
|
Chris PeBenito |
31b7c0 |
allow fetchmail_t port_type:tcp_socket name_connect;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
allow fetchmail_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
31b7c0 |
allow fetchmail_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# file access
|
|
Chris PeBenito |
31b7c0 |
allow fetchmail_t etc_t:file r_file_perms;
|
|
Chris PeBenito |
31b7c0 |
allow fetchmail_t fetchmail_etc_t:file r_file_perms;
|
|
Chris PeBenito |
31b7c0 |
allow fetchmail_t mail_spool_t:dir search;
|
|
Chris PeBenito |
31b7c0 |
file_type_auto_trans(fetchmail_t, mail_spool_t, fetchmail_uidl_cache_t, file)
|