## The blkmapd daemon performs device discovery and mapping for pNFS block layout client. ######################################## ## ## Execute blkmapd_exec_t in the blkmapd domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`blkmapd_domtrans',` gen_require(` type blkmapd_t, blkmapd_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, blkmapd_exec_t, blkmapd_t) ') ###################################### ## ## Execute blkmapd in the caller domain. ## ## ## ## Domain allowed access. ## ## # interface(`blkmapd_exec',` gen_require(` type blkmapd_exec_t; ') corecmd_search_bin($1) can_exec($1, blkmapd_exec_t) ') ######################################## ## ## Execute blkmapd server in the blkmapd domain. ## ## ## ## Domain allowed access. ## ## # interface(`blkmapd_initrc_domtrans',` gen_require(` type blkmapd_initrc_exec_t; ') init_labeled_script_domtrans($1, blkmapd_initrc_exec_t) ') ######################################## ## ## Read blkmapd PID files. ## ## ## ## Domain allowed access. ## ## # interface(`blkmapd_read_pid_files',` gen_require(` type blkmapd_var_run_t; ') files_search_pids($1) read_files_pattern($1, blkmapd_var_run_t, blkmapd_var_run_t) ') ######################################## ## ## All of the rules required to administrate ## an blkmapd environment ## ## ## ## Domain allowed access. ## ## ## ## ## Role allowed access. ## ## ## # interface(`blkmapd_admin',` gen_require(` type blkmapd_t; type blkmapd_initrc_exec_t; type blkmapd_var_run_t; ') allow $1 blkmapd_t:process { signal_perms }; ps_process_pattern($1, blkmapd_t) tunable_policy(`deny_ptrace',`',` allow $1 blkmapd_t:process ptrace; ') blkmapd_initrc_domtrans($1) domain_system_change_exemption($1) role_transition $2 blkmapd_initrc_exec_t system_r; allow $2 system_r; files_search_pids($1) admin_pattern($1, blkmapd_var_run_t) optional_policy(` systemd_passwd_agent_exec($1) systemd_read_fifo_file_passwd_run($1) ') ')