## Telepathy communications framework. ####################################### ## ## Creates basic types for telepathy ## domain ## ## ## ## Prefix for the domain. ## ## # # template(`telepathy_domain_template',` gen_require(` attribute telepathy_domain; attribute telepathy_executable; ') type telepathy_$1_t, telepathy_domain; type telepathy_$1_exec_t, telepathy_executable; userdom_user_application_domain(telepathy_$1_t, telepathy_$1_exec_t) type telepathy_$1_tmp_t; userdom_user_tmp_file(telepathy_$1_tmp_t) auth_use_nsswitch(telepathy_$1_t) ') ####################################### ## ## Role access for telepathy domains ### that executes via dbus-session ## ## ## ## The role associated with the user domain. ## ## ## ## ## The type of the user domain. ## ## # template(`telepathy_role', ` gen_require(` attribute telepathy_domain; type telepathy_gabble_t, telepathy_sofiasip_t, telepathy_idle_t; type telepathy_mission_control_t, telepathy_salut_t, telepathy_sunshine_t; type telepathy_stream_engine_t, telepathy_msn_t, telepathy_gabble_exec_t; type telepathy_sofiasip_exec_t, telepathy_idle_exec_t; type telepathy_logger_t, telepathy_logger_exec_t; type telepathy_mission_control_exec_t, telepathy_salut_exec_t; type telepathy_sunshine_exec_t, telepathy_stream_engine_exec_t; type telepathy_msn_exec_t; ') role $1 types telepathy_domain; allow $2 telepathy_domain:process signal_perms; ps_process_pattern($2, telepathy_domain) telepathy_gabble_stream_connect($2) telepathy_msn_stream_connect($2) telepathy_salut_stream_connect($2) dbus_session_domain($3, telepathy_gabble_exec_t, telepathy_gabble_t) dbus_session_domain($3, telepathy_sofiasip_exec_t, telepathy_sofiasip_t) dbus_session_domain($3, telepathy_idle_exec_t, telepathy_idle_t) dbus_session_domain($3, telepathy_logger_exec_t, telepathy_logger_t) dbus_session_domain($3, telepathy_mission_control_exec_t, telepathy_mission_control_t) dbus_session_domain($3, telepathy_salut_exec_t, telepathy_salut_t) dbus_session_domain($3, telepathy_sunshine_exec_t, telepathy_sunshine_t) dbus_session_domain($3, telepathy_stream_engine_exec_t, telepathy_stream_engine_t) dbus_session_domain($3, telepathy_msn_exec_t, telepathy_msn_t) ') ######################################## ## ## Stream connect to Telepathy Gabble ## ## ## ## Domain allowed access. ## ## # interface(`telepathy_gabble_stream_connect', ` gen_require(` type telepathy_gabble_t, telepathy_gabble_tmp_t; ') stream_connect_pattern($1, telepathy_gabble_tmp_t, telepathy_gabble_tmp_t, telepathy_gabble_t) files_search_tmp($1) ') ######################################## ## ## Send DBus messages to and from ## Telepathy Gabble. ## ## ## ## Domain allowed access. ## ## # interface(`telepathy_gabble_dbus_chat', ` gen_require(` type telepathy_gabble_t; class dbus send_msg; ') allow $1 telepathy_gabble_t:dbus send_msg; allow telepathy_gabble_t $1:dbus send_msg; ') ######################################## ## ## Read telepathy mission control state. ## ## ## ## Prefix to be used. ## ## ## ## ## Domain allowed access. ## ## # interface(`telepathy_mission_control_read_state',` gen_require(` type telepathy_mission_control_t; ') kernel_search_proc($1) ps_process_pattern($1, telepathy_mission_control_t) ') ####################################### ## ## Stream connect to telepathy MSN managers ## ## ## ## Domain allowed access. ## ## # interface(`telepathy_msn_stream_connect', ` gen_require(` type telepathy_msn_t, telepathy_msn_tmp_t; ') stream_connect_pattern($1, telepathy_msn_tmp_t, telepathy_msn_tmp_t, telepathy_msn_t) files_search_tmp($1) ') ######################################## ## ## Stream connect to Telepathy Salut ## ## ## ## Domain allowed access. ## ## # interface(`telepathy_salut_stream_connect', ` gen_require(` type telepathy_salut_t, telepathy_salut_tmp_t; ') stream_connect_pattern($1, telepathy_salut_tmp_t, telepathy_salut_tmp_t, telepathy_salut_t) files_search_tmp($1) ')