1# Temperature sensor daemon (root process)
2type thermal-engine, domain, domain_deprecated;
3type thermal-engine_exec, exec_type, file_type;
4
5# Started by init
6init_daemon_domain(thermal-engine)
7
8allow thermal-engine smem_log_device:chr_file rw_file_perms;
9
10allow thermal-engine thermal_device:chr_file rw_file_perms;
11
12allow thermal-engine self:capability { dac_read_search dac_override fsetid chown };
13allow thermal-engine self:capability2 wake_alarm;
14
15# Talk to qmuxd (/dev/socket/qmux_radio)
16qmux_socket(thermal-engine)
17
18# Create and access to /dev/socket/thermal-.*
19type_transition thermal-engine socket_device:sock_file thermal_socket;
20allow thermal-engine socket_device:dir w_dir_perms;
21allow thermal-engine thermal_socket:sock_file create_file_perms;
22
23allow thermal-engine self:socket create_socket_perms;
24
25allow thermal-engine sysfs_thermal:dir r_dir_perms;
26allow thermal-engine sysfs_thermal:file rw_file_perms;
27allow thermal-engine sysfs_thermal:lnk_file read;
28
29r_dir_file(thermal-engine, sysfs_ssr)
30