Chris PeBenito 7b2152c
policy_module(telepathy, 1.2.1)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Declarations.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
## <desc>
Chris PeBenito 9401ae1
## 

Chris PeBenito 9401ae1
##	Allow the Telepathy connection managers
Chris PeBenito 9401ae1
##	to connect to any generic TCP port.
Chris PeBenito 9401ae1
## 

Chris PeBenito 9401ae1
## </desc>
Chris PeBenito 9401ae1
gen_tunable(telepathy_tcp_connect_generic_network_ports, false)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
## <desc>
Chris PeBenito 9401ae1
## 

Chris PeBenito 9401ae1
##	Allow the Telepathy connection managers
Chris PeBenito 9401ae1
##	to connect to any network port.
Chris PeBenito 9401ae1
## 

Chris PeBenito 9401ae1
## </desc>
Chris PeBenito 9401ae1
gen_tunable(telepathy_connect_all_ports, false)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
attribute telepathy_domain;
Chris PeBenito 9401ae1
attribute telepathy_executable;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
telepathy_domain_template(gabble)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type telepathy_gabble_cache_home_t;
Chris PeBenito 9401ae1
userdom_user_home_content(telepathy_gabble_cache_home_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
telepathy_domain_template(idle)
Chris PeBenito 9401ae1
telepathy_domain_template(logger)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type telepathy_logger_cache_home_t;
Chris PeBenito 9401ae1
userdom_user_home_content(telepathy_logger_cache_home_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type telepathy_logger_data_home_t;
Chris PeBenito 9401ae1
userdom_user_home_content(telepathy_logger_data_home_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
telepathy_domain_template(mission_control)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type telepathy_mission_control_home_t;
Chris PeBenito 9401ae1
userdom_user_home_content(telepathy_mission_control_home_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type telepathy_mission_control_cache_home_t;
Chris PeBenito 9401ae1
userdom_user_home_content(telepathy_mission_control_cache_home_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
telepathy_domain_template(msn)
Chris PeBenito 9401ae1
telepathy_domain_template(salut)
Chris PeBenito 9401ae1
telepathy_domain_template(sofiasip)
Chris PeBenito 9401ae1
telepathy_domain_template(stream_engine)
Chris PeBenito 9401ae1
telepathy_domain_template(sunshine)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type telepathy_sunshine_home_t;
Chris PeBenito 9401ae1
userdom_user_home_content(telepathy_sunshine_home_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Telepathy Gabble local policy.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow telepathy_gabble_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 9401ae1
allow telepathy_gabble_t self:unix_dgram_socket { create_socket_perms sendto };
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(telepathy_gabble_t, telepathy_gabble_tmp_t, telepathy_gabble_tmp_t)
Chris PeBenito 9401ae1
manage_sock_files_pattern(telepathy_gabble_t, telepathy_gabble_tmp_t, telepathy_gabble_tmp_t)
Chris PeBenito 9401ae1
files_tmp_filetrans(telepathy_gabble_t, telepathy_gabble_tmp_t, { dir sock_file })
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corenet_all_recvfrom_netlabel(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_all_recvfrom_unlabeled(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_if(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_node(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_http_port(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_jabber_client_port(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_vnc_port(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_sendrecv_http_client_packets(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_sendrecv_jabber_client_client_packets(telepathy_gabble_t)
Chris PeBenito 9401ae1
corenet_sendrecv_vnc_client_packets(telepathy_gabble_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
dev_read_rand(telepathy_gabble_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_config_files(telepathy_gabble_t)
Chris PeBenito 9401ae1
files_read_usr_files(telepathy_gabble_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
fs_getattr_all_fs(telepathy_gabble_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
miscfiles_read_all_certs(telepathy_gabble_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_connect_all_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_all_ports(telepathy_gabble_t)
Chris PeBenito 9401ae1
	corenet_tcp_sendrecv_all_ports(telepathy_gabble_t)
Chris PeBenito 9401ae1
	corenet_udp_sendrecv_all_ports(telepathy_gabble_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_tcp_connect_generic_network_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_generic_port(telepathy_gabble_t)
Chris PeBenito 9401ae1
	corenet_sendrecv_generic_client_packets(telepathy_gabble_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`use_nfs_home_dirs',`
Chris PeBenito 9401ae1
	fs_manage_nfs_dirs(telepathy_gabble_t)
Chris PeBenito 9401ae1
	fs_manage_nfs_files(telepathy_gabble_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`use_samba_home_dirs',`
Chris PeBenito 9401ae1
	fs_manage_cifs_dirs(telepathy_gabble_t)
Chris PeBenito 9401ae1
	fs_manage_cifs_files(telepathy_gabble_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	dbus_system_bus_client(telepathy_gabble_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Telepathy Idle local policy.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corenet_all_recvfrom_netlabel(telepathy_idle_t)
Chris PeBenito 9401ae1
corenet_all_recvfrom_unlabeled(telepathy_idle_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_if(telepathy_idle_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_node(telepathy_idle_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_gatekeeper_port(telepathy_idle_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_ircd_port(telepathy_idle_t)
Chris PeBenito 9401ae1
corenet_sendrecv_ircd_client_packets(telepathy_idle_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
dev_read_rand(telepathy_idle_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(telepathy_idle_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_connect_all_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_all_ports(telepathy_idle_t)
Chris PeBenito 9401ae1
	corenet_tcp_sendrecv_all_ports(telepathy_idle_t)
Chris PeBenito 9401ae1
	corenet_udp_sendrecv_all_ports(telepathy_idle_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_tcp_connect_generic_network_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_generic_port(telepathy_idle_t)
Chris PeBenito 9401ae1
	corenet_sendrecv_generic_client_packets(telepathy_idle_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Telepathy Logger local policy.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow telepathy_logger_t self:unix_stream_socket create_socket_perms;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_files_pattern(telepathy_logger_t, telepathy_logger_cache_home_t, telepathy_logger_cache_home_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(telepathy_logger_t, telepathy_logger_data_home_t, telepathy_logger_data_home_t)
Chris PeBenito 9401ae1
manage_files_pattern(telepathy_logger_t, telepathy_logger_data_home_t, telepathy_logger_data_home_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(telepathy_logger_t)
Chris PeBenito 9401ae1
files_read_usr_files(telepathy_logger_t)
Chris PeBenito 9401ae1
files_search_pids(telepathy_logger_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
fs_getattr_all_fs(telepathy_logger_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`use_nfs_home_dirs',`
Chris PeBenito 9401ae1
	fs_manage_nfs_dirs(telepathy_logger_t)
Chris PeBenito 9401ae1
	fs_manage_nfs_files(telepathy_logger_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`use_samba_home_dirs',`
Chris PeBenito 9401ae1
	fs_manage_cifs_dirs(telepathy_logger_t)
Chris PeBenito 9401ae1
	fs_manage_cifs_files(telepathy_logger_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Telepathy Mission-Control local policy.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(telepathy_mission_control_t, telepathy_mission_control_home_t, telepathy_mission_control_home_t)
Chris PeBenito 9401ae1
manage_files_pattern(telepathy_mission_control_t, telepathy_mission_control_home_t, telepathy_mission_control_home_t)
Chris PeBenito 9401ae1
userdom_user_home_dir_filetrans(telepathy_mission_control_t, telepathy_mission_control_home_t, { dir file })
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
dev_read_rand(telepathy_mission_control_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
fs_getattr_all_fs(telepathy_mission_control_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(telepathy_mission_control_t)
Chris PeBenito 9401ae1
files_read_usr_files(telepathy_mission_control_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`use_nfs_home_dirs',`
Chris PeBenito 9401ae1
	fs_manage_nfs_dirs(telepathy_mission_control_t)
Chris PeBenito 9401ae1
	fs_manage_nfs_files(telepathy_mission_control_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`use_samba_home_dirs',`
Chris PeBenito 9401ae1
	fs_manage_cifs_dirs(telepathy_mission_control_t)
Chris PeBenito 9401ae1
	fs_manage_cifs_files(telepathy_mission_control_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Telepathy Butterfly and Haze local policy.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow telepathy_msn_t self:process setsched;
Chris PeBenito 9401ae1
allow telepathy_msn_t self:unix_dgram_socket { write create connect };
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(telepathy_msn_t, telepathy_msn_tmp_t, telepathy_msn_tmp_t)
Chris PeBenito 9401ae1
manage_files_pattern(telepathy_msn_t, telepathy_msn_tmp_t, telepathy_msn_tmp_t)
Chris PeBenito 9401ae1
manage_sock_files_pattern(telepathy_msn_t, telepathy_msn_tmp_t, telepathy_msn_tmp_t)
Chris PeBenito 9401ae1
files_tmp_filetrans(telepathy_msn_t, telepathy_msn_tmp_t, { dir file sock_file })
Chris PeBenito 9401ae1
userdom_user_tmp_filetrans(telepathy_msn_t, telepathy_msn_tmp_t, { dir file sock_file })
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corenet_all_recvfrom_netlabel(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_all_recvfrom_unlabeled(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_if(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_node(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_tcp_bind_generic_node(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_http_port(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_mmcc_port(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_msnp_port(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_sip_port(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_sendrecv_http_client_packets(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_sendrecv_mmcc_client_packets(telepathy_msn_t)
Chris PeBenito 9401ae1
corenet_sendrecv_msnp_client_packets(telepathy_msn_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corecmd_exec_bin(telepathy_msn_t)
Chris PeBenito 9401ae1
corecmd_exec_shell(telepathy_msn_t)
Chris PeBenito 9401ae1
corecmd_read_bin_symlinks(telepathy_msn_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(telepathy_msn_t)
Chris PeBenito 9401ae1
files_read_usr_files(telepathy_msn_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
libs_exec_ldconfig(telepathy_msn_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
logging_send_syslog_msg(telepathy_msn_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
miscfiles_read_all_certs(telepathy_msn_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_connect_all_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_all_ports(telepathy_msn_t)
Chris PeBenito 9401ae1
	corenet_tcp_sendrecv_all_ports(telepathy_msn_t)
Chris PeBenito 9401ae1
	corenet_udp_sendrecv_all_ports(telepathy_msn_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_tcp_connect_generic_network_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_generic_port(telepathy_msn_t)
Chris PeBenito 9401ae1
	corenet_sendrecv_generic_client_packets(telepathy_msn_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	dbus_system_bus_client(telepathy_msn_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	optional_policy(`
Chris PeBenito 9401ae1
		networkmanager_dbus_chat(telepathy_msn_t)
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Telepathy Salut local policy.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow telepathy_salut_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_sock_files_pattern(telepathy_salut_t, telepathy_salut_tmp_t, telepathy_salut_tmp_t)
Chris PeBenito 9401ae1
files_tmp_filetrans(telepathy_salut_t, telepathy_salut_tmp_t, sock_file)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corenet_all_recvfrom_netlabel(telepathy_salut_t)
Chris PeBenito 9401ae1
corenet_all_recvfrom_unlabeled(telepathy_salut_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_if(telepathy_salut_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_node(telepathy_salut_t)
Chris PeBenito 9401ae1
corenet_tcp_bind_generic_node(telepathy_salut_t)
Chris PeBenito 9401ae1
corenet_tcp_bind_presence_port(telepathy_salut_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_presence_port(telepathy_salut_t)
Chris PeBenito 9401ae1
corenet_sendrecv_presence_server_packets(telepathy_salut_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(telepathy_salut_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_connect_all_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_all_ports(telepathy_salut_t)
Chris PeBenito 9401ae1
	corenet_tcp_sendrecv_all_ports(telepathy_salut_t)
Chris PeBenito 9401ae1
	corenet_udp_sendrecv_all_ports(telepathy_salut_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_tcp_connect_generic_network_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_generic_port(telepathy_salut_t)
Chris PeBenito 9401ae1
	corenet_sendrecv_generic_client_packets(telepathy_salut_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	dbus_system_bus_client(telepathy_salut_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
	optional_policy(`
Chris PeBenito 9401ae1
		avahi_dbus_chat(telepathy_salut_t)
Chris PeBenito 9401ae1
	')
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Telepathy Sofiasip local policy.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow telepathy_sofiasip_t self:rawip_socket { create_socket_perms listen };
Chris PeBenito 9401ae1
allow telepathy_sofiasip_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corenet_all_recvfrom_netlabel(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_all_recvfrom_unlabeled(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_if(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_raw_sendrecv_generic_if(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_raw_sendrecv_generic_node(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_tcp_sendrecv_generic_node(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_tcp_bind_generic_node(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_raw_bind_generic_node(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_tcp_bind_all_unreserved_ports(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_dontaudit_tcp_bind_all_ports(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_tcp_connect_sip_port(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
corenet_sendrecv_sip_client_packets(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
kernel_request_load_module(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_connect_all_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_all_ports(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
	corenet_tcp_sendrecv_all_ports(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
	corenet_udp_sendrecv_all_ports(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
tunable_policy(`telepathy_tcp_connect_generic_network_ports',`
Chris PeBenito 9401ae1
	corenet_tcp_connect_generic_port(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
	corenet_sendrecv_generic_client_packets(telepathy_sofiasip_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Telepathy Sunshine local policy.
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(telepathy_sunshine_t, telepathy_sunshine_home_t, telepathy_sunshine_home_t)
Chris PeBenito 9401ae1
manage_files_pattern(telepathy_sunshine_t, telepathy_sunshine_home_t, telepathy_sunshine_home_t)
Chris PeBenito 9401ae1
userdom_user_home_dir_filetrans(telepathy_sunshine_t, telepathy_sunshine_home_t, { dir file })
Chris PeBenito 9401ae1
userdom_search_user_home_dirs(telepathy_sunshine_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_files_pattern(telepathy_sunshine_t, telepathy_sunshine_tmp_t, telepathy_sunshine_tmp_t)
Chris PeBenito 9401ae1
exec_files_pattern(telepathy_sunshine_t, telepathy_sunshine_tmp_t, telepathy_sunshine_tmp_t)
Chris PeBenito 9401ae1
files_tmp_filetrans(telepathy_sunshine_t, telepathy_sunshine_tmp_t, file)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corecmd_exec_bin(telepathy_sunshine_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(telepathy_sunshine_t)
Chris PeBenito 9401ae1
files_read_usr_files(telepathy_sunshine_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	xserver_read_xdm_pid(telepathy_sunshine_t)
Chris PeBenito 9401ae1
	xserver_stream_connect(telepathy_sunshine_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
#######################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# telepathy domains common policy
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
allow telepathy_domain self:process { getsched signal sigkill };
Chris PeBenito 9401ae1
allow telepathy_domain self:fifo_file rw_fifo_file_perms;
Chris PeBenito 9401ae1
allow telepathy_domain self:tcp_socket create_socket_perms;
Chris PeBenito 9401ae1
allow telepathy_domain self:udp_socket create_socket_perms;
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
dev_read_urand(telepathy_domain)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
kernel_read_system_state(telepathy_domain)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
fs_search_auto_mountpoints(telepathy_domain)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
miscfiles_read_localization(telepathy_domain)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	automount_dontaudit_getattr_tmp_dirs(telepathy_domain)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	xserver_rw_xdm_pipes(telepathy_domain)
Chris PeBenito 9401ae1
')