## Anaconda installer. ######################################## ## ## Execute a domain transition to run install. ## ## ## ## Domain allowed to transition. ## ## # interface(`anaconda_domtrans_install',` gen_require(` type install_t, install_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, install_exec_t, install_t) ') ######################################## ## ## Execute install in the install ## domain, and allow the specified ## role the install domain. ## ## ## ## Domain allowed to transition. ## ## ## ## ## Role allowed access. ## ## # interface(`anaconda_run_install',` gen_require(` type install_t; type install_exec_t; attribute_role install_roles; ') anaconda_domtrans_install($1) roleattribute $2 install_roles; role_transition $2 install_exec_t system_r; optional_policy(` rpm_transition_script(install_t, $2) ') ') ######################################## ## ## Execute preupgrade in the caller domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`anaconda_exec_preupgrade',` gen_require(` type preupgrade_exec_t; ') corecmd_search_bin($1) can_exec($1, preupgrade_exec_t) ') ######################################## ## ## Execute a domain transition to run preupgrade. ## ## ## ## Domain allowed to transition. ## ## # interface(`anaconda_domtrans_preupgrade',` gen_require(` type preupgrade_t, preupgrade_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, preupgrade_exec_t, preupgrade_t) ') ######################################## ## ## Read preupgrade lib files ## ## ## ## Domain allowed access. ## ## # interface(`anaconda_read_lib_files_preupgrade',` gen_require(` type preupgrade_data_t; ') read_files_pattern($1, preupgrade_data_t, preupgrade_data_t) read_lnk_files_pattern($1, preupgrade_data_t, preupgrade_data_t) files_search_var_lib($1) ') ######################################## ## ## Manage preupgrade lib files ## ## ## ## Domain allowed access. ## ## # interface(`anaconda_manage_lib_files_preupgrade',` gen_require(` type preupgrade_data_t; ') manage_dirs_pattern($1, preupgrade_data_t, preupgrade_data_t) manage_files_pattern($1, preupgrade_data_t, preupgrade_data_t) manage_lnk_files_pattern($1, preupgrade_data_t, preupgrade_data_t) files_search_var_lib($1) ') ######################################## ## ## Connect over a unix stream socket ## ## ## ## Domain allowed access. ## ## # interface(`anaconda_stream_connect',` gen_require(` type install_t, install_var_run_t; ') files_search_pids($1) stream_connect_pattern($1, install_var_run_t, install_var_run_t, install_t) ') ######################################## ## ## Create and use a unix stream socket ## ## ## ## Domain allowed access. ## ## # interface(`anaconda_create_unix_stream_sockets',` gen_require(` type install_t; ') allow $1 install_t:unix_stream_socket create_stream_socket_perms; ') ######################################## ## ## Use file descriptors from the install domain ## ## ## ## Domain allowed access. ## ## # interface(`anaconda_fd_use',` gen_require(` type install_t; ') allow $1 install_t:fd use; ')