## policy for rtorrent ######################################## ## ## Execute rtorrent_exec_t in the rtorrent domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`rtorrent_domtrans',` gen_require(` type rtorrent_t, rtorrent_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, rtorrent_exec_t, rtorrent_t) ') ###################################### ## ## Execute rtorrent in the caller domain. ## ## ## ## Domain allowed access. ## ## # interface(`rtorrent_exec',` gen_require(` type rtorrent_exec_t; ') corecmd_search_bin($1) can_exec($1, rtorrent_exec_t) ') ######################################## ## ## Execute rtorrent in the rtorrent domain, and ## allow the specified role the rtorrent domain. ## ## ## ## Domain allowed to transition ## ## ## ## ## The role to be allowed the rtorrent domain. ## ## # interface(`rtorrent_run',` gen_require(` type rtorrent_t; attribute_role rtorrent_roles; ') rtorrent_domtrans($1) roleattribute $2 rtorrent_roles; ') ######################################## ## ## Role access for rtorrent ## ## ## ## Role allowed access ## ## ## ## ## User domain for the role ## ## # interface(`rtorrent_role',` gen_require(` type rtorrent_t; attribute_role rtorrent_roles; ') roleattribute $1 rtorrent_roles; rtorrent_domtrans($2) ps_process_pattern($2, rtorrent_t) allow $2 rtorrent_t:process { signull signal sigkill }; ')