1# Policy for /vendor/bin/thermal-engine 2type thermal-engine, domain; 3type thermal-engine_exec, exec_type, file_type; 4 5init_daemon_domain(thermal-engine) 6 7# Grant access to Qualcomm MSM Interface (QMI) radio sockets 8qmux_socket(thermal-engine) 9 10allow thermal-engine self:socket create_socket_perms; 11allowxperm thermal-engine self:socket ioctl msm_sock_ipc_ioctls; 12 13# /dev/msm_thermal_query 14allow thermal-engine thermal_device:chr_file rw_file_perms; 15 16# files in /sys/ 17r_dir_file(thermal-engine, sysfs_type) 18allow thermal-engine sysfs_msm_subsys:file write; 19allow thermal-engine sysfs_thermal:file write; 20 21allow thermal-engine uio_device:chr_file rw_file_perms; 22 23# access to /dev/diag on debug builds 24userdebug_or_eng(` 25 allow thermal-engine diag_device:chr_file rw_file_perms; 26') 27 28