## ## Policy for hotplug system, for supporting the ## connection and disconnection of devices at runtime. ## ######################################## ## ## Execute hotplug with a domain transition. ## ## ## ## Domain allowed access. ## ## # interface(`hotplug_domtrans',` gen_require(` type hotplug_t, hotplug_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1,hotplug_exec_t,hotplug_t) ') ######################################## ## ## Execute hotplug in the caller domain. ## ## ## ## Domain allowed access. ## ## # interface(`hotplug_exec',` gen_require(` type hotplug_t; ') corecmd_search_bin($1) can_exec($1,hotplug_exec_t) ') ######################################## ## ## Inherit and use hotplug file descriptors. ## ## ## ## Domain allowed access. ## ## # interface(`hotplug_use_fds',` gen_require(` type hotplug_t; ') allow $1 hotplug_t:fd use; ') ######################################## ## ## Do not audit attempts to inherit ## hotplug file descriptors. ## ## ## ## Domain to not audit. ## ## # interface(`hotplug_dontaudit_use_fds',` gen_require(` type hotplug_t; ') dontaudit $1 hotplug_t:fd use; ') ######################################## ## ## Do not audit attempts to search the ## hotplug configuration directories. ## ## ## ## Domain to not audit. ## ## # interface(`hotplug_dontaudit_search_config',` gen_require(` type hotplug_etc_t; ') dontaudit $1 hotplug_etc_t:dir search; ') ######################################## ## ## Get the attributes of the hotplug configuration directory. ## ## ## ## Domain allowed access. ## ## # interface(`hotplug_getattr_config_dirs',` gen_require(` type hotplug_etc_t; ') allow $1 hotplug_etc_t:dir getattr; ') ######################################## ## ## Search the hotplug configuration directory. ## ## ## ## Domain allowed access. ## ## # interface(`hotplug_search_config',` gen_require(` type hotplug_etc_t; ') allow $1 hotplug_etc_t:dir search_dir_perms; ') ######################################## ## ## Read the configuration files for hotplug. ## ## ## ## The type of the process performing this action. ## ## ## # interface(`hotplug_read_config',` gen_require(` type hotplug_etc_t; ') files_search_etc($1) allow $1 hotplug_etc_t:dir list_dir_perms; read_files_pattern($1,hotplug_etc_t,hotplug_etc_t) read_lnk_files_pattern($1,hotplug_etc_t,hotplug_etc_t) ') ######################################## ## ## Search the hotplug PIDs. ## ## ## ## Domain allowed access. ## ## # interface(`hotplug_search_pids',` gen_require(` type hotplug_var_run_t; ') allow $1 hotplug_var_run_t:dir search_dir_perms; files_search_pids($1) ')