|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
5ea24b |
policy_module(cyrus,1.1.0)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
########################################
|
|
Chris PeBenito |
ea557a |
#
|
|
Chris PeBenito |
ea557a |
# Declarations
|
|
Chris PeBenito |
ea557a |
#
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
type cyrus_t;
|
|
Chris PeBenito |
ea557a |
type cyrus_exec_t;
|
|
Chris PeBenito |
ea557a |
init_daemon_domain(cyrus_t,cyrus_exec_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
type cyrus_tmp_t;
|
|
Chris PeBenito |
ea557a |
files_tmp_file(cyrus_tmp_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
type cyrus_var_lib_t;
|
|
Chris PeBenito |
ea557a |
files_type(cyrus_var_lib_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
type cyrus_var_run_t;
|
|
Chris PeBenito |
ea557a |
files_pid_file(cyrus_var_run_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
########################################
|
|
Chris PeBenito |
ea557a |
#
|
|
Chris PeBenito |
ea557a |
# Local policy
|
|
Chris PeBenito |
ea557a |
#
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:capability { dac_override net_bind_service setgid setuid sys_resource };
|
|
Chris PeBenito |
ea557a |
dontaudit cyrus_t self:capability sys_tty_config;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:process setrlimit;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:fd use;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
33acca |
allow cyrus_t self:sock_file r_file_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:shm create_shm_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:sem create_sem_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:msgq create_msgq_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:msg { send receive };
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:unix_dgram_socket sendto;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:unix_stream_socket connectto;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
allow cyrus_t cyrus_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t cyrus_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_tmp(cyrus_t, cyrus_tmp_t, { file dir })
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
allow cyrus_t cyrus_var_lib_t:dir create_dir_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t cyrus_var_lib_t:{file sock_file lnk_file} create_file_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(cyrus_t,cyrus_var_run_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
allow cyrus_t cyrus_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t cyrus_var_run_t:sock_file create_file_perms;
|
|
Chris PeBenito |
ea557a |
allow cyrus_t cyrus_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(cyrus_t,cyrus_var_run_t,{ file sock_file })
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(cyrus_t)
|
|
Chris PeBenito |
ea557a |
kernel_read_system_state(cyrus_t)
|
|
Chris PeBenito |
445522 |
kernel_read_all_sysctls(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
corenet_tcp_sendrecv_all_if(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_udp_sendrecv_all_if(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_raw_sendrecv_all_if(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_tcp_sendrecv_all_nodes(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_udp_sendrecv_all_nodes(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_raw_sendrecv_all_nodes(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_tcp_sendrecv_all_ports(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_udp_sendrecv_all_ports(cyrus_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_tcp_bind_all_nodes(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_udp_bind_all_nodes(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_tcp_bind_mail_port(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_tcp_bind_pop_port(cyrus_t)
|
|
Chris PeBenito |
ea557a |
corenet_tcp_connect_all_ports(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
dev_read_rand(cyrus_t)
|
|
Chris PeBenito |
ea557a |
dev_read_urand(cyrus_t)
|
|
Chris PeBenito |
ea557a |
dev_read_sysfs(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
fs_getattr_all_fs(cyrus_t)
|
|
Chris PeBenito |
ea557a |
fs_search_auto_mountpoints(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
term_dontaudit_use_console(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
corecmd_exec_bin(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
domain_use_wide_inherit_fd(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
files_list_var_lib(cyrus_t)
|
|
Chris PeBenito |
ea557a |
files_read_etc_files(cyrus_t)
|
|
Chris PeBenito |
ea557a |
files_read_etc_runtime_files(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
init_use_fd(cyrus_t)
|
|
Chris PeBenito |
33acca |
init_use_script_pty(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
libs_use_ld_so(cyrus_t)
|
|
Chris PeBenito |
ea557a |
libs_use_shared_libs(cyrus_t)
|
|
Chris PeBenito |
ea557a |
libs_exec_lib_files(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
logging_send_syslog_msg(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
miscfiles_read_localization(cyrus_t)
|
|
Chris PeBenito |
ea557a |
miscfiles_read_certs(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
sysnet_read_config(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
userdom_dontaudit_use_unpriv_user_fd(cyrus_t)
|
|
Chris PeBenito |
ea557a |
userdom_dontaudit_search_sysadm_home_dir(cyrus_t)
|
|
Chris PeBenito |
ea557a |
userdom_use_unpriv_users_fd(cyrus_t)
|
|
Chris PeBenito |
ea557a |
userdom_use_sysadm_pty(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
mta_manage_spool(cyrus_t)
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
ea557a |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
ea557a |
term_dontaudit_use_unallocated_tty(cyrus_t)
|
|
Chris PeBenito |
ea557a |
term_dontaudit_use_generic_pty(cyrus_t)
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_read_root_files(cyrus_t)
|
|
Chris PeBenito |
ea557a |
')
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
132880 |
optional_policy(`cron',`
|
|
Chris PeBenito |
ea557a |
cron_system_entry(cyrus_t,cyrus_exec_t)
|
|
Chris PeBenito |
ea557a |
')
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
132880 |
optional_policy(`mount',`
|
|
Chris PeBenito |
ea557a |
mount_send_nfs_client_request(cyrus_t)
|
|
Chris PeBenito |
ea557a |
')
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
132880 |
optional_policy(`nis',`
|
|
Chris PeBenito |
ea557a |
nis_use_ypbind(cyrus_t)
|
|
Chris PeBenito |
ea557a |
')
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
132880 |
optional_policy(`sasl',`
|
|
Chris PeBenito |
ea557a |
sasl_connect(cyrus_t)
|
|
Chris PeBenito |
ea557a |
')
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
132880 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
ea557a |
seutil_sigchld_newrole(cyrus_t)
|
|
Chris PeBenito |
ea557a |
')
|
|
Chris PeBenito |
ea557a |
|
|
Chris PeBenito |
132880 |
optional_policy(`udev',`
|
|
Chris PeBenito |
ea557a |
udev_read_db(cyrus_t)
|
|
Chris PeBenito |
ea557a |
')
|