## Sensor information logging daemon ######################################## ## ## Execute sensord in the sensord domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`sensord_domtrans',` gen_require(` type sensord_t, sensord_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, sensord_exec_t, sensord_t) ') ######################################## ## ## Execute sensord server in the sensord domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`sensord_systemctl',` gen_require(` type sensord_t; type sensord_unit_file_t; ') systemd_exec_systemctl($1) allow $1 sensord_unit_file_t:file read_file_perms; allow $1 sensord_unit_file_t:service manage_service_perms; ps_process_pattern($1, sensord_t) ') ######################################## ## ## All of the rules required to administrate ## an sensord environment ## ## ## ## Domain allowed access. ## ## ## ## ## Role allowed access. ## ## ## # interface(`sensord_admin',` gen_require(` type sensord_t; type sensord_unit_file_t; ') allow $1 sensord_t:process { ptrace signal_perms }; ps_process_pattern($1, sensord_t) sensord_systemctl($1) admin_pattern($1, sensord_unit_file_t) allow $1 sensord_unit_file_t:service all_service_perms; optional_policy(` systemd_passwd_agent_exec($1) systemd_read_fifo_file_passwd_run($1) ') ')