## policy for hypervkvp ######################################## ## ## Execute TEMPLATE in the hypervkvp domin. ## ## ## ## Domain allowed to transition. ## ## # interface(`hypervkvp_domtrans',` gen_require(` type hypervkvp_t, hypervkvp_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, hypervkvp_exec_t, hypervkvp_t) ') ######################################## ## ## Search hypervkvp lib directories. ## ## ## ## Domain allowed access. ## ## # interface(`hypervkvp_search_lib',` gen_require(` type hypervkvp_var_lib_t; ') allow $1 hypervkvp_var_lib_t:dir search_dir_perms; files_search_var_lib($1) ') ######################################## ## ## Read hypervkvp lib files. ## ## ## ## Domain allowed access. ## ## # interface(`hypervkvp_read_lib_files',` gen_require(` type hypervkvp_var_lib_t; ') files_search_var_lib($1) allow $1 hypervkvp_var_lib_t:dir list_dir_perms; read_files_pattern($1, hypervkvp_var_lib_t, hypervkvp_var_lib_t) ') ######################################## ## ## Create, read, write, and delete ## hypervkvp lib files. ## ## ## ## Domain allowed access. ## ## # interface(`hypervkvp_manage_lib_files',` gen_require(` type hypervkvp_var_lib_t; ') files_search_var_lib($1) manage_files_pattern($1, hypervkvp_var_lib_t, hypervkvp_var_lib_t) ') ####################################### ## ## Execute hypervkvp server in the hypervkvp domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`hypervkvp_systemctl',` gen_require(` type hypervkvp_t; type hypervkvp_unit_file_t; ') systemd_exec_systemctl($1) init_reload_services($1) allow $1 hypervkvp_unit_file_t:file read_file_perms; allow $1 hypervkvp_unit_file_t:service manage_service_perms; ps_process_pattern($1, hypervkvp_t) ') ######################################## ## ## All of the rules required to administrate ## an hypervkvp environment ## ## ## ## Domain allowed access. ## ## # interface(`hypervkvp_admin',` gen_require(` type hypervkvp_t; type hypervkvp_unit_file_t; ') allow $1 hypervkvp_t:process signal_perms; ps_process_pattern($1, hypervkvp_t) tunable_policy(`deny_ptrace',`',` allow $1 hypervkvp_t:process ptrace; ') hypervkvp_manage_lib_files($1) hypervkvp_systemctl($1) admin_pattern($1, hypervkvp_unit_file_t) allow $1 hypervkvp_unit_file_t:service all_service_perms; ')