1 ## <summary>hddtemp hard disk temperature tool running as a daemon.</summary>
3 #######################################
5 ## Execute a domain transition to run hddtemp.
7 ## <param name="domain">
9 ## Domain allowed to transition.
13 interface(`hddtemp_domtrans',`
15 type hddtemp_t, hddtemp_exec_t;
18 domtrans_pattern($1, hddtemp_exec_t, hddtemp_t)
19 corecmd_search_bin($1)
22 ######################################
26 ## <param name="domain">
28 ## Domain allowed access.
32 interface(`hddtemp_exec',`
37 can_exec($1, hddtemp_exec_t)
38 corecmd_search_bin($1)
41 ########################################
43 ## All of the rules required to
44 ## administrate an hddtemp environment.
46 ## <param name="domain">
48 ## Domain allowed access.
51 ## <param name="role">
53 ## Role allowed access.
58 interface(`hddtemp_admin',`
60 type hddtemp_t, hddtemp_etc_t, hddtemp_initrc_exec_t;
63 allow $1 hddtemp_t:process signal_perms;
64 ps_process_pattern($1, hddtemp_t)
65 tunable_policy(`deny_ptrace',`',`
66 allow $1 hddtemp_t:process ptrace;
69 init_labeled_script_domtrans($1, hddtemp_initrc_exec_t)
70 domain_system_change_exemption($1)
71 role_transition $2 hddtemp_initrc_exec_t system_r;
74 admin_pattern($1, hddtemp_etc_t)