## Client-side service written in Python that responds to pings and runs rhn_check when told to by osa-dispatcher. ######################################## ## ## Execute osad in the osad domin. ## ## ## ## Domain allowed to transition. ## ## # interface(`osad_domtrans',` gen_require(` type osad_t, osad_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, osad_exec_t, osad_t) ') ######################################## ## ## Execute osad server in the osad domain. ## ## ## ## Domain allowed access. ## ## # interface(`osad_initrc_domtrans',` gen_require(` type osad_initrc_exec_t; ') init_labeled_script_domtrans($1, osad_initrc_exec_t) ') ######################################## ## ## Read osad's log files. ## ## ## ## Domain allowed access. ## ## ## # interface(`osad_read_log',` gen_require(` type osad_log_t; ') logging_search_logs($1) read_files_pattern($1, osad_log_t, osad_log_t) ') ######################################## ## ## Append to osad log files. ## ## ## ## Domain allowed access. ## ## # interface(`osad_append_log',` gen_require(` type osad_log_t; ') logging_search_logs($1) append_files_pattern($1, osad_log_t, osad_log_t) ') ######################################## ## ## Manage osad log files ## ## ## ## Domain allowed access. ## ## # interface(`osad_manage_log',` gen_require(` type osad_log_t; ') logging_search_logs($1) manage_dirs_pattern($1, osad_log_t, osad_log_t) manage_files_pattern($1, osad_log_t, osad_log_t) manage_lnk_files_pattern($1, osad_log_t, osad_log_t) ') ######################################## ## ## Read osad PID files. ## ## ## ## Domain allowed access. ## ## # interface(`osad_read_pid_files',` gen_require(` type osad_var_run_t; ') files_search_pids($1) read_files_pattern($1, osad_var_run_t, osad_var_run_t) ') ######################################## ## ## All of the rules required to administrate ## an osad environment ## ## ## ## Domain allowed access. ## ## ## ## ## Role allowed access. ## ## ## # interface(`osad_admin',` gen_require(` type osad_t; type osad_initrc_exec_t; type osad_log_t; type osad_var_run_t; ') allow $1 osad_t:process { signal_perms }; ps_process_pattern($1, osad_t) tunable_policy(`deny_ptrace',`',` allow $1 osad_t:process ptrace; ') osad_initrc_domtrans($1) domain_system_change_exemption($1) role_transition $2 osad_initrc_exec_t system_r; allow $2 system_r; logging_search_logs($1) admin_pattern($1, osad_log_t) files_search_pids($1) admin_pattern($1, osad_var_run_t) optional_policy(` systemd_passwd_agent_exec($1) systemd_read_fifo_file_passwd_run($1) ') ')