1type thermald, domain, domain_deprecated;
2type thermald_exec, exec_type, file_type;
3
4init_daemon_domain(thermald)
5
6allow thermald shared_log_device:chr_file rw_file_perms;
7allow thermald thermal_engine_device:chr_file rw_file_perms;
8
9allow thermald self:socket create_socket_perms;
10type_transition thermald socket_device:sock_file thermald_socket;
11allow thermald thermald_socket:sock_file create_file_perms;
12
13allow thermald sysfs_thermal:dir r_dir_perms;
14allow thermald sysfs_thermal:file rw_file_perms;
15
16allow thermald sysfs_msm_subsys:dir r_dir_perms;
17allow thermald sysfs_msm_subsys:lnk_file rw_file_perms;
18
19allow thermald sysfs_thermal:file write;
20
21# Grant access to Qualcomm MSM Interface (QMI) radio sockets to system services
22# (e.g., LocationManager)
23qmux_socket(thermald)
24
25# Reboot the device
26set_prop(thermald, powerctl_prop)
27