|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
30958f |
policy_module(cyrus, 1.9.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type cyrus_t;
|
|
Chris PeBenito |
17de1b |
type cyrus_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_daemon_domain(cyrus_t, cyrus_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
74993c |
type cyrus_initrc_exec_t;
|
|
Chris PeBenito |
74993c |
init_script_file(cyrus_initrc_exec_t)
|
|
Chris PeBenito |
74993c |
|
|
Chris PeBenito |
17de1b |
type cyrus_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(cyrus_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type cyrus_var_lib_t;
|
|
Chris PeBenito |
17de1b |
files_type(cyrus_var_lib_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type cyrus_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(cyrus_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:capability { dac_override net_bind_service setgid setuid sys_resource };
|
|
Chris PeBenito |
17de1b |
dontaudit cyrus_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:process setrlimit;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:fd use;
|
|
Chris PeBenito |
c0868a |
allow cyrus_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
allow cyrus_t self:sock_file read_sock_file_perms;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:shm create_shm_perms;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:sem create_sem_perms;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:msgq create_msgq_perms;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:msg { send receive };
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:unix_dgram_socket sendto;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow cyrus_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(cyrus_t, cyrus_tmp_t, cyrus_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cyrus_t, cyrus_tmp_t, cyrus_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(cyrus_t, cyrus_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(cyrus_t, cyrus_var_lib_t, cyrus_var_lib_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cyrus_t, cyrus_var_lib_t, cyrus_var_lib_t)
|
|
Chris PeBenito |
0bfccd |
manage_lnk_files_pattern(cyrus_t, cyrus_var_lib_t, cyrus_var_lib_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(cyrus_t, cyrus_var_lib_t, cyrus_var_lib_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(cyrus_t, cyrus_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(cyrus_t, cyrus_var_run_t, cyrus_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_sock_files_pattern(cyrus_t, cyrus_var_run_t, cyrus_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(cyrus_t, cyrus_var_run_t, { file sock_file })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(cyrus_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(cyrus_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_all_sysctls(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(cyrus_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(cyrus_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(cyrus_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(cyrus_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(cyrus_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(cyrus_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(cyrus_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(cyrus_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(cyrus_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_mail_port(cyrus_t)
|
|
Chris PeBenito |
a5e213 |
corenet_tcp_bind_lmtp_port(cyrus_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_pop_port(cyrus_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(cyrus_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_mail_server_packets(cyrus_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_pop_server_packets(cyrus_t)
|
|
Chris PeBenito |
a5e213 |
corenet_sendrecv_lmtp_server_packets(cyrus_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_rand(cyrus_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(cyrus_t)
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(cyrus_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_list_var_lib(cyrus_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(cyrus_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(cyrus_t)
|
|
Chris PeBenito |
5dbda5 |
files_read_usr_files(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0cf6e |
auth_use_nsswitch(cyrus_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
Chris PeBenito |
17de1b |
libs_exec_lib_files(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(cyrus_t)
|
|
Chris PeBenito |
17de1b |
miscfiles_read_certs(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_use_unpriv_users_fds(cyrus_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mta_manage_spool(cyrus_t)
|
|
Chris PeBenito |
9af48e |
mta_send_mail(cyrus_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
0bfccd |
cron_system_entry(cyrus_t, cyrus_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
74993c |
kerberos_keytab_template(cyrus, cyrus_t)
|
|
Chris PeBenito |
9af48e |
')
|
|
Chris PeBenito |
9af48e |
|
|
Chris PeBenito |
9af48e |
optional_policy(`
|
|
Chris PeBenito |
465510 |
ldap_stream_connect(cyrus_t)
|
|
Chris PeBenito |
465510 |
')
|
|
Chris PeBenito |
465510 |
|
|
Chris PeBenito |
465510 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
sasl_connect(cyrus_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(cyrus_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
a5e213 |
snmp_read_snmp_var_lib_files(cyrus_t)
|
|
Chris PeBenito |
f7101c |
snmp_dontaudit_write_snmp_var_lib_files(cyrus_t)
|
|
Chris PeBenito |
30958f |
snmp_stream_connect(cyrus_t)
|
|
Chris PeBenito |
a5e213 |
')
|
|
Chris PeBenito |
a5e213 |
|
|
Chris PeBenito |
a5e213 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(cyrus_t)
|
|
Chris PeBenito |
17de1b |
')
|