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