## New monitoring suite that aims to be faster and more stable, while giving you a clearer view of the state of your network. ######################################## ## ## Execute naemon in the naemon domin. ## ## ## ## Domain allowed to transition. ## ## # interface(`naemon_domtrans',` gen_require(` type naemon_t, naemon_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, naemon_exec_t, naemon_t) ') ######################################## ## ## Execute naemon server in the naemon domain. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_initrc_domtrans',` gen_require(` type naemon_initrc_exec_t; ') init_labeled_script_domtrans($1, naemon_initrc_exec_t) ') ######################################## ## ## Search naemon cache directories. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_search_cache',` gen_require(` type naemon_cache_t; ') allow $1 naemon_cache_t:dir search_dir_perms; files_search_var($1) ') ######################################## ## ## Read naemon cache files. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_read_cache_files',` gen_require(` type naemon_cache_t; ') files_search_var($1) read_files_pattern($1, naemon_cache_t, naemon_cache_t) ') ######################################## ## ## Create, read, write, and delete ## naemon cache files. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_manage_cache_files',` gen_require(` type naemon_cache_t; ') files_search_var($1) manage_files_pattern($1, naemon_cache_t, naemon_cache_t) ') ######################################## ## ## Manage naemon cache dirs. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_manage_cache_dirs',` gen_require(` type naemon_cache_t; ') files_search_var($1) manage_dirs_pattern($1, naemon_cache_t, naemon_cache_t) ') ######################################## ## ## Read naemon's log files. ## ## ## ## Domain allowed access. ## ## ## # interface(`naemon_read_log',` gen_require(` type naemon_log_t; ') logging_search_logs($1) read_files_pattern($1, naemon_log_t, naemon_log_t) ') ######################################## ## ## Append to naemon log files. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_append_log',` gen_require(` type naemon_log_t; ') logging_search_logs($1) append_files_pattern($1, naemon_log_t, naemon_log_t) ') ######################################## ## ## Manage naemon log files ## ## ## ## Domain allowed access. ## ## # interface(`naemon_manage_log',` gen_require(` type naemon_log_t; ') logging_search_logs($1) manage_dirs_pattern($1, naemon_log_t, naemon_log_t) manage_files_pattern($1, naemon_log_t, naemon_log_t) manage_lnk_files_pattern($1, naemon_log_t, naemon_log_t) ') ######################################## ## ## Search naemon lib directories. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_search_lib',` gen_require(` type naemon_var_lib_t; ') allow $1 naemon_var_lib_t:dir search_dir_perms; files_search_var_lib($1) ') ######################################## ## ## Read naemon lib files. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_read_lib_files',` gen_require(` type naemon_var_lib_t; ') files_search_var_lib($1) read_files_pattern($1, naemon_var_lib_t, naemon_var_lib_t) ') ######################################## ## ## Manage naemon lib files. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_manage_lib_files',` gen_require(` type naemon_var_lib_t; ') files_search_var_lib($1) manage_files_pattern($1, naemon_var_lib_t, naemon_var_lib_t) ') ######################################## ## ## Manage naemon lib directories. ## ## ## ## Domain allowed access. ## ## # interface(`naemon_manage_lib_dirs',` gen_require(` type naemon_var_lib_t; ') files_search_var_lib($1) manage_dirs_pattern($1, naemon_var_lib_t, naemon_var_lib_t) ') ######################################## ## ## All of the rules required to administrate ## an naemon environment ## ## ## ## Domain allowed access. ## ## ## ## ## Role allowed access. ## ## ## # interface(`naemon_admin',` gen_require(` type naemon_t; type naemon_initrc_exec_t; type naemon_cache_t; type naemon_log_t; type naemon_var_lib_t; ') allow $1 naemon_t:process { signal_perms }; ps_process_pattern($1, naemon_t) tunable_policy(`deny_ptrace',`',` allow $1 naemon_t:process ptrace; ') naemon_initrc_domtrans($1) domain_system_change_exemption($1) role_transition $2 naemon_initrc_exec_t system_r; allow $2 system_r; files_search_var($1) admin_pattern($1, naemon_cache_t) logging_search_logs($1) admin_pattern($1, naemon_log_t) files_search_var_lib($1) admin_pattern($1, naemon_var_lib_t) optional_policy(` systemd_passwd_agent_exec($1) systemd_read_fifo_file_passwd_run($1) ') ')