|
Chris PeBenito |
edf241 |
## <summary>Evolution email client</summary>
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
#######################################
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## The per user domain template for the evolution module.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## <desc>
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
## This template creates a derived domains which are used
|
|
Chris PeBenito |
edf241 |
## for evolution email client and other related evolution applications such as webcal and alarm
|
|
Chris PeBenito |
edf241 |
## type is also created to protect the user evolution keys.
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
## This template is invoked automatically for each user, and
|
|
Chris PeBenito |
edf241 |
## generally does not need to be invoked directly
|
|
Chris PeBenito |
edf241 |
## by policy writers.
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
## </desc>
|
|
Chris PeBenito |
edf241 |
## <param name="userdomain_prefix">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## The prefix of the user domain (e.g., user
|
|
Chris PeBenito |
edf241 |
## is the prefix for user_t).
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
## <param name="user_domain">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## The type of the user domain.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
## <param name="user_role">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## The role associated with the user domain.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
template(`evolution_per_userdomain_template',`
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
# Declarations
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_t;
|
|
Chris PeBenito |
edf241 |
domain_type($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
domain_entry_file($1_evolution_t,evolution_exec_t)
|
|
Chris PeBenito |
edf241 |
role $3 types $1_evolution_t;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_tmpfs_t;
|
|
Chris PeBenito |
edf241 |
files_tmpfs_file($1_evolution_tmpfs_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_home_t alias $1_evolution_rw_t;
|
|
Chris PeBenito |
edf241 |
files_poly_member($1_evolution_home_t)
|
|
Chris PeBenito |
edf241 |
userdom_user_home_content($1,$1_evolution_home_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_orbit_tmp_t;
|
|
Chris PeBenito |
edf241 |
files_type($1_evolution_orbit_tmp_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_alarm_t;
|
|
Chris PeBenito |
edf241 |
domain_type($1_evolution_alarm_t)
|
|
Chris PeBenito |
fb63d0 |
domain_entry_file($1_evolution_alarm_t,evolution_alarm_exec_t)
|
|
Chris PeBenito |
edf241 |
role $3 types $1_evolution_alarm_t;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_alarm_tmpfs_t;
|
|
Chris PeBenito |
edf241 |
files_tmpfs_file($1_evolution_alarm_tmpfs_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_alarm_orbit_tmp_t;
|
|
Chris PeBenito |
edf241 |
files_type($1_evolution_alarm_orbit_tmp_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_exchange_t;
|
|
Chris PeBenito |
edf241 |
domain_type($1_evolution_exchange_t)
|
|
Chris PeBenito |
fb63d0 |
domain_entry_file($1_evolution_exchange_t,evolution_exchange_exec_t)
|
|
Chris PeBenito |
edf241 |
role $3 types $1_evolution_exchange_t;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_exchange_tmpfs_t;
|
|
Chris PeBenito |
edf241 |
files_tmpfs_file($1_evolution_exchange_tmpfs_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_exchange_tmp_t;
|
|
Chris PeBenito |
edf241 |
files_tmp_file($1_evolution_exchange_tmp_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_exchange_orbit_tmp_t;
|
|
Chris PeBenito |
edf241 |
files_type($1_evolution_exchange_orbit_tmp_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_server_t;
|
|
Chris PeBenito |
edf241 |
domain_type($1_evolution_server_t)
|
|
Chris PeBenito |
fb63d0 |
domain_entry_file($1_evolution_server_t,evolution_server_exec_t)
|
|
Chris PeBenito |
edf241 |
role $3 types $1_evolution_server_t;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_server_orbit_tmp_t;
|
|
Chris PeBenito |
edf241 |
files_type($1_evolution_server_orbit_tmp_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_webcal_t;
|
|
Chris PeBenito |
edf241 |
domain_type($1_evolution_webcal_t)
|
|
Chris PeBenito |
fb63d0 |
domain_entry_file($1_evolution_webcal_t,evolution_webcal_exec_t)
|
|
Chris PeBenito |
edf241 |
role $3 types $1_evolution_webcal_t;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_evolution_webcal_tmpfs_t;
|
|
Chris PeBenito |
edf241 |
files_tmpfs_file($1_evolution_webcal_tmpfs_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
type $1_orbit_tmp_t;
|
|
Chris PeBenito |
edf241 |
files_type($1_orbit_tmp_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
# Evolution local policy
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t self:capability { setuid setgid sys_nice };
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t self:process { signal getsched setsched };
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_alarm_t:dir search_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_alarm_t:file read;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_alarm_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_alarm_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
can_exec($1_evolution_t,evolution_alarm_exec_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_exchange_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_exchange_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_home_t:dir manage_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_home_t:file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_home_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_orbit_tmp_t:dir manage_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_orbit_tmp_t:file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
files_tmp_filetrans($1_evolution_t,$1_evolution_orbit_tmp_t,{ dir file })
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_server_t:dir search_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_server_t:file read;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_server_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_server_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
can_exec($1_evolution_t,evolution_server_exec_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_tmpfs_t:dir rw_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_tmpfs_t:file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_tmpfs_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_tmpfs_t:sock_file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolution_tmpfs_t:fifo_file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
fs_tmpfs_filetrans($1_evolution_t,$1_evolution_tmpfs_t,{ dir file lnk_file sock_file fifo_file })
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $2:dir search;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $2:fd use;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $2:file read;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $2:lnk_file read;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $2:process sigchld;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $2:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $2:dir search;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $2:file read;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
domain_auto_trans($2, evolution_exec_t, $1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_t:process noatsecure;
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_t:process signal_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access .evolution
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_home_t:dir manage_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_home_t:file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_home_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_home_t:{ dir file lnk_file } { relabelfrom relabelto };
|
|
Chris PeBenito |
edf241 |
userdom_search_user_home_dirs($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Allow the user domain to signal/ps.
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_t:dir { search getattr read };
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_t:{ file lnk_file } { read getattr };
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_t:process getattr;
|
|
Chris PeBenito |
edf241 |
# We need to suppress this denial because procps tries to access
|
|
Chris PeBenito |
edf241 |
# /proc/pid/environ and this now triggers a ptrace check in recent kernels
|
|
Chris PeBenito |
edf241 |
# (2.4 and 2.6). Might want to change procps to not do this, or only if
|
|
Chris PeBenito |
edf241 |
# running in a privileged domain.
|
|
Chris PeBenito |
edf241 |
dontaudit $2 $1_evolution_t:process ptrace;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
#FIXME check to see if really needed
|
|
Chris PeBenito |
edf241 |
kernel_read_kernel_sysctls($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
kernel_read_system_state($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
# Allow netstat
|
|
Chris PeBenito |
edf241 |
kernel_read_network_state($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
kernel_read_net_sysctls($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
corecmd_exec_shell($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
# Run various programs
|
|
Chris PeBenito |
edf241 |
corecmd_exec_bin($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corecmd_exec_sbin($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_generic_if($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_udp_sendrecv_generic_if($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_raw_sendrecv_generic_if($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_all_nodes($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_udp_sendrecv_all_nodes($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_raw_sendrecv_all_nodes($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_pop_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_smtp_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_innd_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_ldap_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
###corenet_tcp_sendrecv_ipp($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_udp_sendrecv_pop_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_udp_sendrecv_smtp_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_udp_sendrecv_innd_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_udp_sendrecv_ldap_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
###corenet_udp_sendrecv_ipp($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_non_ipsec_sendrecv($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_bind_all_nodes($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_udp_bind_all_nodes($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_pop_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_smtp_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_innd_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_ldap_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
###corenet_tcp_connect_ipp_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
# not sure about this bind
|
|
Chris PeBenito |
edf241 |
corenet_udp_bind_generic_port($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
dev_read_urand($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
files_read_etc_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_read_usr_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_read_usr_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_read_var_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
fs_search_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
libs_use_ld_so($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
libs_use_shared_libs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
logging_send_syslog_msg($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
miscfiles_read_localization($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
sysnet_read_config($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
sysnet_dns_name_resolve($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
udev_read_state($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
userdom_rw_user_tmp_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_manage_user_tmp_dirs($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_manage_user_tmp_sockets($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_manage_user_tmp_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .local/.icons/.themes until properly implemented
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .gaim/blist.xml (buddy list synchronization)
|
|
Chris PeBenito |
edf241 |
# until properly implemented
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_home_content_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
mta_read_config($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
xserver_user_client_template($1,$1_evolution_t,$1_evolution_tmpfs_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_dirs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_dirs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`mail_read_content && use_nfs_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_list_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_list_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_read_nfs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_read_nfs_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
',`
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_list_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_read_nfs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_list_nfs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`mail_read_content && use_samba_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_list_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_list_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_read_cifs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_read_cifs_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
',`
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_list_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_read_cifs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_list_cifs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`mail_read_content',`
|
|
Chris PeBenito |
edf241 |
userdom_list_user_tmp($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_read_user_tmp_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_read_user_tmp_symlinks($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_search_user_home_dirs($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_read_user_home_content_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_read_user_home_content_symlinks($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
ifdef(`mls_policy',`',`
|
|
Chris PeBenito |
edf241 |
fs_search_removable($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_read_removable_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_read_removable_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
',`
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_tmp($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_list_removable($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_donaudit_read_removable_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_list_user_tmp($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_tmp_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_list_user_home_dirs($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_home_content_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`mail_read_content && read_default_t',`
|
|
Chris PeBenito |
edf241 |
files_list_default($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_read_default_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_read_default_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
',`
|
|
Chris PeBenito |
edf241 |
files_dontaudit_read_default_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_default($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`mail_read_content && read_untrusted_content',`
|
|
Chris PeBenito |
edf241 |
files_list_tmp($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_list_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_search_user_home_dirs($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
userdom_list_user_untrusted_content($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_read_user_untrusted_content_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_read_user_untrusted_content_symlinks($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_list_user_tmp_untrusted_content($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_read_user_tmp_untrusted_content_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_read_user_tmp_untrusted_content_symlinks($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
',`
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_tmp($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_list_user_home_dirs($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_list_user_untrusted_content($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_untrusted_content_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_list_user_tmp_untrusted_content($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_tmp_untrusted_content_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`write_untrusted_content && use_nfs_home_dirs',`
|
|
Chris PeBenito |
edf241 |
files_search_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
fs_search_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_dirs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
',`
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_list_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_manage_nfs_dirs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_manage_nfs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`write_untrusted_content && use_samba_home_dirs',`
|
|
Chris PeBenito |
edf241 |
files_search_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
fs_search_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_dirs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_symlinks($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
',`
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_list_auto_mountpoints($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_manage_cifs_dirs($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
fs_dontaudit_manage_cifs_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`write_untrusted_content',`
|
|
Chris PeBenito |
edf241 |
files_search_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
userdom_manage_user_untrusted_content_files($1,$1_evolution_t,{ dir file })
|
|
Chris PeBenito |
edf241 |
',`
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_home($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
files_dontaudit_list_tmp($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_list_user_home_dirs($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
#userdom_dontaudit_manage_user_tmp($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
#userdom_dontaudit_manage_user_tmp_files($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
#userdom_dontaudit_manage_user_home_subdirs($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
automount_read_state($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Allow printing the mail
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
cups_read_rw_config($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
dbus_system_bus_client_template($1_evolution,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
dbus_send_system_bus($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
dbus_user_bus_client_template($1,$1_evolution,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
dbus_send_user_bus($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Encrypt mail
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
gpg_domtrans_user_gpg($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
gpg_signal_user_gpg($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
lpd_domtrans_user_lpr($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Allow POP/IMAP/SMTP/NNTP/LDAP/IPP(printing)
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
nis_use_ypbind($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
nscd_socket_use($1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
### Junk mail filtering (start spamd)
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
spamassassin_exec_spamd($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
spamassassin_domtrans_user_client($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
spamassassin_domtrans_user_local_client($1,$1_evolution_t)
|
|
Chris PeBenito |
edf241 |
# Allow evolution to signal the daemon
|
|
Chris PeBenito |
edf241 |
# FIXME: Now evolution can read spamd temp files
|
|
Chris PeBenito |
edf241 |
spamassassin_read_spamd_tmp_files($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
spamassassin_signal_spamd($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
spamassassin_dontaudit_getattr_spamd_tmp_sockets($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
ifdef(`TODO',`
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
#dbus connect to
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_dbusd_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Gnome common stuff
|
|
Chris PeBenito |
edf241 |
gnome_application($1_evolution, $1)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
#TODO gnome stuff
|
|
Chris PeBenito |
edf241 |
# Store passwords in .gnome2_private
|
|
Chris PeBenito |
edf241 |
# Type for storing secret data
|
|
Chris PeBenito |
edf241 |
# (different from home, not directly accessible from ROLE_t)
|
|
Chris PeBenito |
edf241 |
type $1_evolutioin_secret_t;
|
|
Chris PeBenito |
edf241 |
userdom_user_home_content($1,$1_evolutioin_secret_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Put secret files in .gnome2_private
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_gnome_secret_t:dir rw_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_t $1_evolutioin_secret_t:file create_file_perms;
|
|
Chris PeBenito |
edf241 |
type_transition $1_evolution_t $1_gnome_secret_t:file $1_evolutioin_secret_t;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_secret_t:file unlink;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
ifdef(`TODO',`
|
|
Chris PeBenito |
edf241 |
gnome_file_dialog($1_evolution, $1)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
# Start links in web browser
|
|
Chris PeBenito |
edf241 |
ifdef(`mozilla', `
|
|
Chris PeBenito |
edf241 |
corecmd_exec_shell($1_evolution_t)
|
|
Chris PeBenito |
edf241 |
domain_auto_trans($1_evolution_t, mozilla_exec_t, $1_mozilla_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
# Evolution alarm local policy
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t self:fifo_file { read write };
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_alarm_tmpfs_t:dir rw_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_alarm_tmpfs_t:file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_alarm_tmpfs_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_alarm_tmpfs_t:sock_file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_alarm_tmpfs_t:fifo_file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
fs_tmpfs_filetrans($1_evolution_alarm_t,$1_evolution_alarm_tmpfs_t,{ dir file lnk_file sock_file fifo_file })
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_exchange_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_exchange_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_home_t:dir manage_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_home_t:file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_home_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_server_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $1_evolution_server_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
domain_auto_trans($2, evolution_alarm_exec_t, $1_evolution_alarm_t)
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_alarm_t $2:fd use;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
fs_search_auto_mountpoints($1_evolution_alarm_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
miscfiles_read_localization($1_evolution_alarm_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
userdom_search_user_home_dirs($1,$1_evolution_alarm_t)
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .local/.icons/.themes until properly implemented
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .gaim/blist.xml (buddy list synchronization)
|
|
Chris PeBenito |
edf241 |
# until properly implemented
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_home_content_files($1,$1_evolution_alarm_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
xserver_user_client_template($1,$1_evolution_alarm_t,$1_evolution_alarm_tmpfs_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_files($1_evolution_alarm_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_files($1_evolution_alarm_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
nscd_socket_use($1_evolution_alarm_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
ifdef(`TODO',`
|
|
Chris PeBenito |
edf241 |
# Gnome common stuff
|
|
Chris PeBenito |
edf241 |
gnome_application($1_evolution_alarm,$1)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
# Evolution exchange connector local policy
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_alarm_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_alarm_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_home_t:dir create_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_home_t:file create_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_home_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_server_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_server_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# /tmp/.exchange-$USER
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_exchange_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_exchange_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
edf241 |
files_tmp_filetrans($1_evolution_exchange_t, $1_evolution_exchange_tmp_t, { file dir })
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_exchange_tmpfs_t:dir rw_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_exchange_tmpfs_t:file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_exchange_tmpfs_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_exchange_tmpfs_t:sock_file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_evolution_exchange_tmpfs_t:fifo_file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
fs_tmpfs_filetrans($1_evolution_exchange_t,$1_evolution_exchange_tmpfs_t,{ dir file lnk_file sock_file fifo_file })
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $2:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
#FIXME, who should own this. I dont think this module should
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_exchange_t $1_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Clock applet talks to exchange (FIXME: Needs policy)
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_exchange_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_exchange_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Transition from user domain
|
|
Chris PeBenito |
edf241 |
domain_auto_trans($2, evolution_exchange_exec_t, $1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
kernel_read_network_state($1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
kernel_read_net_sysctls($1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Allow netstat
|
|
Chris PeBenito |
edf241 |
corecmd_exec_bin($1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
fs_search_auto_mountpoints($1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
userdom_search_user_home_dirs($1,$1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .local/.icons/.themes until properly implemented
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .gaim/blist.xml (buddy list synchronization)
|
|
Chris PeBenito |
edf241 |
# until properly implemented
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_home_content_files($1,$1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
xserver_user_client_template($1,$1_evolution_exchange_t,$1_evolution_exchange_tmpfs_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_files($1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_files($1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
nscd_socket_use($1_evolution_exchange_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
ifdef(`TODO',`
|
|
Chris PeBenito |
edf241 |
# Gnome common stuff
|
|
Chris PeBenito |
edf241 |
gnome_application($1_evolution_exchange, $1)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
# Evolution data server local policy
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t self:fifo_file { read write };
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t self:unix_stream_socket { accept connectto };
|
|
Chris PeBenito |
edf241 |
# Talk to ldap (address book),
|
|
Chris PeBenito |
edf241 |
# Obtain weather data via http (read server name from xml file in /usr)
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_exchange_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_exchange_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_home_t:dir create_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_home_t:file create_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_home_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_alarm_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $1_evolution_alarm_orbit_tmp_t:sock_file write;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_server_t $2:fd use;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
kernel_read_system_state($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
corecmd_exec_shell($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Obtain weather data via http (read server name from xml file in /usr)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_generic_if($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_raw_sendrecv_generic_if($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_all_nodes($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_raw_sendrecv_all_nodes($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_http_port($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_http_cache_port($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_non_ipsec_sendrecv($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_bind_all_nodes($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_http_cache_port($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_http_port($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
# Talk to ldap (address book)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_generic_if($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_raw_sendrecv_generic_if($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_all_nodes($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_raw_sendrecv_all_nodes($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_ldap_port($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_non_ipsec_sendrecv($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_bind_all_nodes($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_ldap_port($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
files_read_etc_files($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
# Obtain weather data via http (read server name from xml file in /usr)
|
|
Chris PeBenito |
edf241 |
files_read_usr_files($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
fs_search_auto_mountpoints($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
libs_use_ld_so($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
libs_use_shared_libs($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Look in /etc/pki
|
|
Chris PeBenito |
edf241 |
miscfiles_read_certs($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Talk to ldap (address book)
|
|
Chris PeBenito |
edf241 |
# Obtain weather data via http (read server name from xml file in /usr)
|
|
Chris PeBenito |
edf241 |
sysnet_read_config($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
sysnet_dns_name_resolve($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
userdom_search_user_home_dirs($1,$1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .local/.icons/.themes until properly implemented
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .gaim/blist.xml (buddy list synchronization)
|
|
Chris PeBenito |
edf241 |
# until properly implemented
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_home_content_files($1,$1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Transition from user type
|
|
Chris PeBenito |
edf241 |
tunable_policy(`!disable_evolution_trans',`
|
|
Chris PeBenito |
edf241 |
domain_auto_trans($2, evolution_server_exec_t, $1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Access evolution home
|
|
Chris PeBenito |
edf241 |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_manage_nfs_files($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
edf241 |
fs_manage_cifs_files($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
nscd_socket_use($1_evolution_server_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
ifdef(`TODO',`
|
|
Chris PeBenito |
edf241 |
# Gnome common stuff
|
|
Chris PeBenito |
edf241 |
gnome_application($1_evolution_server, $1)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
# Evolution webcal local policy
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_webcal_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# X/evolution common stuff
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_webcal_t $1_evolution_webcal_tmpfs_t:dir rw_dir_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_webcal_t $1_evolution_webcal_tmpfs_t:file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_webcal_t $1_evolution_webcal_tmpfs_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_webcal_t $1_evolution_webcal_tmpfs_t:sock_file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
allow $1_evolution_webcal_t $1_evolution_webcal_tmpfs_t:fifo_file manage_file_perms;
|
|
Chris PeBenito |
edf241 |
fs_tmpfs_filetrans($1_evolution_webcal_t,$1_evolution_webcal_tmpfs_t,{ dir file lnk_file sock_file fifo_file })
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Transition from user type
|
|
Chris PeBenito |
edf241 |
domain_auto_trans($2, evolution_webcal_exec_t, $1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_generic_if($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_raw_sendrecv_generic_if($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_all_nodes($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_raw_sendrecv_all_nodes($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_http_port($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_sendrecv_http_cache_port($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_non_ipsec_sendrecv($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_bind_all_nodes($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_http_cache_port($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
corenet_tcp_connect_http_port($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Networking capability - connect to website and handle ics link
|
|
Chris PeBenito |
edf241 |
sysnet_read_config($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
sysnet_dns_name_resolve($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
# Search home directory (?)
|
|
Chris PeBenito |
edf241 |
userdom_search_user_home_dirs($1,$1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .local/.icons/.themes until properly implemented
|
|
Chris PeBenito |
edf241 |
# FIXME: suppress access to .gaim/blist.xml (buddy list synchronization)
|
|
Chris PeBenito |
edf241 |
# until properly implemented
|
|
Chris PeBenito |
edf241 |
userdom_dontaudit_read_user_home_content_files($1,$1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
xserver_user_client_template($1,$1_evolution_webcal_t,$1_evolution_webcal_tmpfs_t)
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
edf241 |
nscd_socket_use($1_evolution_webcal_t)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
ifdef(`TODO',`
|
|
Chris PeBenito |
edf241 |
# Gnome common stuff
|
|
Chris PeBenito |
edf241 |
gnome_application($1_evolution_webcal, $1)
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## Create objects in users evolution home folders.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## <desc>
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
## This is a templated interface, and should only
|
|
Chris PeBenito |
edf241 |
## be called from a per-userdomain template.
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
## </desc>
|
|
Chris PeBenito |
edf241 |
## <param name="prefix">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## The prefix of the user domain (e.g., user
|
|
Chris PeBenito |
edf241 |
## is the prefix for user_t).
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
## <param name="domain">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## Domain allowed access.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
## <param name="object">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## The object class of the object being created. If
|
|
Chris PeBenito |
edf241 |
## no class is specified, dir will be used.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
template(`evolution_home_filetrans',`
|
|
Chris PeBenito |
edf241 |
gen_require(`
|
|
Chris PeBenito |
edf241 |
type $1_evolution_home_t;
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_home_t:dir rw_dir_perms;
|
|
Chris PeBenito |
edf241 |
type_transition $2 $1_evolution_home_t:$4 $3;
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
########################################
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## Connect to user evolution unix stream socket.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## <desc>
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
## Connect to user evolution unix stream socket.
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
## This is a templated interface, and should only
|
|
Chris PeBenito |
edf241 |
## be called from a per-userdomain template.
|
|
Chris PeBenito |
edf241 |
##
|
|
Chris PeBenito |
edf241 |
## </desc>
|
|
Chris PeBenito |
edf241 |
## <param name="userdomain_prefix">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## The prefix of the user domain (e.g., user
|
|
Chris PeBenito |
edf241 |
## is the prefix for user_t).
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
## <param name="domain">
|
|
Chris PeBenito |
edf241 |
## <summary>
|
|
Chris PeBenito |
edf241 |
## Domain allowed access.
|
|
Chris PeBenito |
edf241 |
## </summary>
|
|
Chris PeBenito |
edf241 |
## </param>
|
|
Chris PeBenito |
edf241 |
#
|
|
Chris PeBenito |
edf241 |
template(`evolution_stream_connect',`
|
|
Chris PeBenito |
edf241 |
gen_require(`
|
|
Chris PeBenito |
49b41c |
type $1_evolution_t, $1_evolution_home_t;
|
|
Chris PeBenito |
edf241 |
')
|
|
Chris PeBenito |
edf241 |
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
edf241 |
allow $2 $1_evolution_home_t:dir search;
|
|
Chris PeBenito |
edf241 |
')
|