## Platform diagnostics report firmware events. ######################################## ## ## Execute rtas_errd in the rtas_errd domin. ## ## ## ## Domain allowed to transition. ## ## # interface(`rtas_errd_domtrans',` gen_require(` type rtas_errd_t, rtas_errd_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, rtas_errd_exec_t, rtas_errd_t) ') ######################################## ## ## Read rtas_errd's log files. ## ## ## ## Domain allowed access. ## ## ## # interface(`rtas_errd_read_log',` gen_require(` type rtas_errd_log_t; ') logging_search_logs($1) read_files_pattern($1, rtas_errd_log_t, rtas_errd_log_t) ') ######################################## ## ## Append to rtas_errd log files. ## ## ## ## Domain allowed access. ## ## # interface(`rtas_errd_append_log',` gen_require(` type rtas_errd_log_t; ') logging_search_logs($1) append_files_pattern($1, rtas_errd_log_t, rtas_errd_log_t) ') ######################################## ## ## Manage rtas_errd log files ## ## ## ## Domain allowed access. ## ## # interface(`rtas_errd_manage_log',` gen_require(` type rtas_errd_log_t; ') logging_search_logs($1) manage_dirs_pattern($1, rtas_errd_log_t, rtas_errd_log_t) manage_files_pattern($1, rtas_errd_log_t, rtas_errd_log_t) manage_lnk_files_pattern($1, rtas_errd_log_t, rtas_errd_log_t) ') ######################################## ## ## Read rtas_errd's lock files. ## ## ## ## Domain allowed access. ## ## ## # interface(`rtas_errd_read_lock',` gen_require(` type rtas_errd_var_lock_t; ') logging_search_logs($1) read_files_pattern($1, rtas_errd_var_lock_t, rtas_errd_var_lock_t) ') ######################################## ## ## Read and Write rtas_errd's lock files. ## ## ## ## Domain allowed access. ## ## ## # interface(`rtas_errd_rw_lock',` gen_require(` type rtas_errd_var_lock_t; ') rw_files_pattern($1, rtas_errd_var_lock_t, rtas_errd_var_lock_t) ') ######################################## ## ## Dontaudit attempts to write to rtas_errd's lock files. ## ## ## ## Domain allowed access. ## ## ## # interface(`rtas_errd_dontaudit_write_lock',` gen_require(` type rtas_errd_var_lock_t; ') dontaudit $1 rtas_errd_var_lock_t:file write_file_perms; ') ######################################## ## ## Read rtas_errd PID files. ## ## ## ## Domain allowed access. ## ## # interface(`rtas_errd_read_pid_files',` gen_require(` type rtas_errd_var_run_t; ') files_search_pids($1) read_files_pattern($1, rtas_errd_var_run_t, rtas_errd_var_run_t) ') ######################################## ## ## Execute rtas_errd server in the rtas_errd domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`rtas_errd_systemctl',` gen_require(` type rtas_errd_t; type rtas_errd_unit_file_t; ') systemd_exec_systemctl($1) init_reload_services($1) systemd_read_fifo_file_passwd_run($1) allow $1 rtas_errd_unit_file_t:file read_file_perms; allow $1 rtas_errd_unit_file_t:service manage_service_perms; ps_process_pattern($1, rtas_errd_t) ') ######################################## ## ## All of the rules required to administrate ## an rtas_errd environment ## ## ## ## Domain allowed access. ## ## # interface(`rtas_errd_admin',` gen_require(` type rtas_errd_t; type rtas_errd_log_t, rtas_errd_var_run_t; type rtas_errd_unit_file_t; ') allow $1 rtas_errd_t:process { ptrace signal_perms }; ps_process_pattern($1, rtas_errd_t) logging_search_logs($1) admin_pattern($1, rtas_errd_log_t) files_search_pids($1) admin_pattern($1, rtas_errd_var_run_t) rtas_errd_systemctl($1) admin_pattern($1, rtas_errd_unit_file_t) allow $1 rtas_errd_unit_file_t:service all_service_perms; optional_policy(` systemd_passwd_agent_exec($1) systemd_read_fifo_file_passwd_run($1) ') ')