## Run .NET server and client applications on Linux. ####################################### ## ## The role template for the mono module. ## ## ## ## This template creates a derived domains which are used ## for mono applications. ## ## ## ## ## 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(`mono_role_template',` gen_require(` type mono_exec_t; ') type $1_mono_t; domain_type($1_mono_t) domain_entry_file($1_mono_t, mono_exec_t) role $2 types $1_mono_t; domain_interactive_fd($1_mono_t) application_type($1_mono_t) allow $1_mono_t self:process { ptrace signal getsched execheap execmem execstack }; allow $3 $1_mono_t:process { getattr ptrace noatsecure signal_perms }; domtrans_pattern($3, mono_exec_t, $1_mono_t) fs_dontaudit_rw_tmpfs_files($1_mono_t) corecmd_bin_domtrans($1_mono_t, $1_t) userdom_manage_user_tmpfs_files($1_mono_t) optional_policy(` xserver_role($1_r, $1_mono_t) ') ') ######################################## ## ## Execute the mono program in the mono domain. ## ## ## ## Domain allowed access. ## ## # interface(`mono_domtrans',` gen_require(` type mono_t, mono_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, mono_exec_t, mono_t) ') ######################################## ## ## Execute mono in the mono domain, and ## allow the specified role the mono domain. ## ## ## ## Domain allowed access. ## ## ## ## ## Role allowed access. ## ## # interface(`mono_run',` gen_require(` type mono_t; ') mono_domtrans($1) role $2 types mono_t; ') ######################################## ## ## Execute the mono program in the caller domain. ## ## ## ## Domain allowed access. ## ## # interface(`mono_exec',` gen_require(` type mono_exec_t; ') corecmd_search_bin($1) can_exec($1, mono_exec_t) ') ######################################## ## ## Read and write to mono shared memory. ## ## ## ## Domain allowed access. ## ## # interface(`mono_rw_shm',` gen_require(` type mono_t; ') allow $1 mono_t:shm rw_shm_perms; ')
## This template creates a derived domains which are used ## for mono applications. ##