## Policy for changing the system host name. ######################################## ## ## Execute hostname in the hostname domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`hostname_domtrans',` gen_require(` type hostname_t, hostname_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, hostname_exec_t, hostname_t) ') ######################################## ## ## Execute hostname in the hostname domain, and ## allow the specified role the hostname domain. ## ## ## ## Domain allowed to transition. ## ## ## ## ## Role allowed access. ## ## # interface(`hostname_run',` gen_require(` type hostname_t; ') hostname_domtrans($1) role $2 types hostname_t; ') ######################################## ## ## Execute hostname in the caller domain. ## ## ## ## Domain allowed access. ## ## ## # interface(`hostname_exec',` gen_require(` type hostname_exec_t; ') corecmd_search_bin($1) can_exec($1, hostname_exec_t) ')