|
Dominick Grift |
e71b5db |
policy_module(fetchmail, 1.12.2)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Declarations
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type fetchmail_t;
|
|
|
1ec3d1a |
type fetchmail_exec_t;
|
|
|
1ec3d1a |
init_daemon_domain(fetchmail_t, fetchmail_exec_t)
|
|
|
1ec3d1a |
application_executable_file(fetchmail_exec_t)
|
|
|
1ec3d1a |
|
|
Dominick Grift |
6b753f1 |
type fetchmail_initrc_exec_t;
|
|
Dominick Grift |
6b753f1 |
init_script_file(fetchmail_initrc_exec_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
type fetchmail_etc_t;
|
|
Chris PeBenito |
9401ae1 |
files_config_file(fetchmail_etc_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
|
1ec3d1a |
type fetchmail_home_t;
|
|
|
1ec3d1a |
userdom_user_home_content(fetchmail_home_t)
|
|
|
1ec3d1a |
|
|
|
8d1d212 |
type fetchmail_log_t;
|
|
|
8d1d212 |
logging_log_file(fetchmail_log_t)
|
|
|
8d1d212 |
|
|
|
1ec3d1a |
type fetchmail_var_run_t;
|
|
|
1ec3d1a |
files_pid_file(fetchmail_var_run_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type fetchmail_uidl_cache_t;
|
|
|
1ec3d1a |
files_type(fetchmail_uidl_cache_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Local policy
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dontaudit fetchmail_t self:capability sys_tty_config;
|
|
|
1ec3d1a |
allow fetchmail_t self:process { signal_perms setrlimit };
|
|
Dominick Grift |
6b753f1 |
allow fetchmail_t self:unix_stream_socket { accept listen };
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow fetchmail_t fetchmail_etc_t:file read_file_perms;
|
|
|
1ec3d1a |
|
|
Dominick Grift |
e71b5db |
manage_dirs_pattern(fetchmail_t, fetchmail_log_t, fetchmail_log_t)
|
|
Dominick Grift |
e71b5db |
append_files_pattern(fetchmail_t, fetchmail_log_t, fetchmail_log_t)
|
|
Dominick Grift |
e71b5db |
create_files_pattern(fetchmail_t, fetchmail_log_t, fetchmail_log_t)
|
|
Dominick Grift |
e71b5db |
setattr_files_pattern(fetchmail_t, fetchmail_log_t, fetchmail_log_t)
|
|
Dominick Grift |
e71b5db |
logging_log_filetrans(fetchmail_t, fetchmail_log_t, { dir file })
|
|
Dominick Grift |
e71b5db |
|
|
|
1ec3d1a |
allow fetchmail_t fetchmail_uidl_cache_t:file manage_file_perms;
|
|
|
1ec3d1a |
mta_spool_filetrans(fetchmail_t, fetchmail_uidl_cache_t, file)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_dirs_pattern(fetchmail_t, fetchmail_var_run_t, fetchmail_var_run_t)
|
|
|
1ec3d1a |
manage_files_pattern(fetchmail_t, fetchmail_var_run_t, fetchmail_var_run_t)
|
|
Dominick Grift |
6b753f1 |
files_pid_filetrans(fetchmail_t, fetchmail_var_run_t, dir)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
list_dirs_pattern(fetchmail_t, fetchmail_home_t, fetchmail_home_t)
|
|
|
1ec3d1a |
read_files_pattern(fetchmail_t, fetchmail_home_t, fetchmail_home_t)
|
|
|
1ec3d1a |
userdom_search_user_home_dirs(fetchmail_t)
|
|
|
1ec3d1a |
userdom_search_admin_dir(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
kernel_read_kernel_sysctls(fetchmail_t)
|
|
|
1ec3d1a |
kernel_list_proc(fetchmail_t)
|
|
|
1ec3d1a |
kernel_getattr_proc_files(fetchmail_t)
|
|
|
1ec3d1a |
kernel_read_proc_symlinks(fetchmail_t)
|
|
|
1ec3d1a |
kernel_dontaudit_read_system_state(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corecmd_exec_bin(fetchmail_t)
|
|
|
1ec3d1a |
corecmd_exec_shell(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corenet_all_recvfrom_netlabel(fetchmail_t)
|
|
|
1ec3d1a |
corenet_tcp_sendrecv_generic_if(fetchmail_t)
|
|
|
1ec3d1a |
corenet_tcp_sendrecv_generic_node(fetchmail_t)
|
|
Dominick Grift |
6b753f1 |
corenet_tcp_sendrecv_all_ports(fetchmail_t)
|
|
Dominick Grift |
6b753f1 |
|
|
|
1ec3d1a |
corenet_sendrecv_all_client_packets(fetchmail_t)
|
|
Dominick Grift |
6b753f1 |
corenet_tcp_connect_all_ports(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dev_read_sysfs(fetchmail_t)
|
|
|
1ec3d1a |
dev_read_rand(fetchmail_t)
|
|
|
1ec3d1a |
dev_read_urand(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
files_read_etc_runtime_files(fetchmail_t)
|
|
|
1ec3d1a |
files_dontaudit_search_home(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
fs_getattr_all_fs(fetchmail_t)
|
|
|
1ec3d1a |
fs_search_auto_mountpoints(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domain_use_interactive_fds(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
30ad03e |
auth_read_passwd(fetchmail_t)
|
|
|
30ad03e |
|
|
|
1ec3d1a |
logging_send_syslog_msg(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
miscfiles_read_generic_certs(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
userdom_dontaudit_use_unpriv_user_fds(fetchmail_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
kerberos_use(fetchmail_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
procmail_domtrans(fetchmail_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
sendmail_manage_log(fetchmail_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
seutil_sigchld_newrole(fetchmail_t)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
udev_read_db(fetchmail_t)
|
|
|
1ec3d1a |
')
|