## Certificate status monitor and PKI enrollment client. ######################################## ## ## Execute a domain transition to run certmonger. ## ## ## ## Domain allowed to transition. ## ## # interface(`certmonger_domtrans',` gen_require(` type certmonger_t, certmonger_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, certmonger_exec_t, certmonger_t) ') ######################################## ## ## Send and receive messages from ## certmonger over dbus. ## ## ## ## Domain allowed access. ## ## # interface(`certmonger_dbus_chat',` gen_require(` type certmonger_t; class dbus send_msg; ') allow $1 certmonger_t:dbus send_msg; allow certmonger_t $1:dbus send_msg; ') ######################################## ## ## Execute certmonger server in ## the certmonger domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`certmonger_initrc_domtrans',` gen_require(` type certmonger_initrc_exec_t; ') init_labeled_script_domtrans($1, certmonger_initrc_exec_t) ') ######################################## ## ## Read certmonger PID files. (Deprecated) ## ## ## ## Domain allowed access. ## ## # interface(`certmonger_read_pid_files',` refpolicywarn(`$0($*) has been deprecated.') ') ######################################## ## ## Search certmonger lib directories. ## ## ## ## Domain allowed access. ## ## # interface(`certmonger_search_lib',` gen_require(` type certmonger_var_lib_t; ') allow $1 certmonger_var_lib_t:dir search_dir_perms; files_search_var_lib($1) ') ######################################## ## ## Read certmonger lib files. ## ## ## ## Domain allowed access. ## ## # interface(`certmonger_read_lib_files',` gen_require(` type certmonger_var_lib_t; ') files_search_var_lib($1) read_files_pattern($1, certmonger_var_lib_t, certmonger_var_lib_t) ') ######################################## ## ## Create, read, write, and delete ## certmonger lib files. ## ## ## ## Domain allowed access. ## ## # interface(`certmonger_manage_lib_files',` gen_require(` type certmonger_var_lib_t; ') files_search_var_lib($1) manage_files_pattern($1, certmonger_var_lib_t, certmonger_var_lib_t) ') ######################################## ## ## All of the rules required to ## administrate an certmonger environment. ## ## ## ## Domain allowed access. ## ## ## ## ## Role allowed access. ## ## ## # interface(`certmonger_admin',` gen_require(` type certmonger_t, certmonger_initrc_exec_t; type certmonger_var_lib_t, certmonger_runtime_t; ') ps_process_pattern($1, certmonger_t) allow $1 certmonger_t:process { ptrace signal_perms }; init_startstop_service($1, $2, certmonger_t, certmonger_initrc_exec_t) files_search_var_lib($1) admin_pattern($1, certmonger_var_lib_t) files_search_runtime($1) admin_pattern($1, certmonger_runtime_t) ')