## D-Bus service providing high-level OBEX client and server side functionality. ####################################### ## ## The role template for obex. ## ## ## ## The prefix of the user domain (e.g., user ## is the prefix for user_t). ## ## ## ## ## The role associated with the user domain. ## ## ## ## ## The type of the user domain. ## ## # template(`obex_role_template',` gen_require(` attribute_role obex_roles; type obex_t, obex_exec_t; ') ######################################## # # Declarations # roleattribute $2 obex_roles; ######################################## # # Policy # allow $3 obex_t:process { ptrace signal_perms }; ps_process_pattern($3, obex_t) dbus_spec_session_domain($1, obex_t, obex_exec_t) obex_dbus_chat($3) ') ######################################## ## ## Execute obex in the obex domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`obex_domtrans',` gen_require(` type obex_t, obex_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, obex_exec_t, obex_t) ') ######################################## ## ## Send and receive messages from ## obex over dbus. ## ## ## ## Domain allowed access. ## ## # interface(`obex_dbus_chat',` gen_require(` type obex_t; class dbus send_msg; ') allow $1 obex_t:dbus send_msg; allow obex_t $1:dbus send_msg; ')