1# ============================================== 2# Policy File of /system/bin/thermalloadalgod_exec Executable File 3 4# ============================================== 5# Type Declaration 6# ============================================== 7type thermalloadalgod ,domain; 8type thermalloadalgod_exec , exec_type, file_type, vendor_file_type; 9 10# ============================================== 11# MTK Policy Rule 12# ============================================== 13init_daemon_domain(thermalloadalgod) 14 15# Data : WK14.43 16# Operation : Migration 17# Purpose : thermal algorithm daemon for access driver node 18allow thermalloadalgod input_device:dir { r_dir_perms write }; 19allow thermalloadalgod input_device:file r_file_perms; 20 21allow thermalloadalgod thermalloadalgod:netlink_socket { create bind write read}; 22 23allow thermalloadalgod thermal_manager_data_file:dir create_dir_perms; 24allow thermalloadalgod thermal_manager_data_file:file create_file_perms; 25allow thermalloadalgod kmsg_device:chr_file write; 26 27# Data : WK16.49 28# Operation : SPA porting 29# Purpose : thermal algorithm daemon for SPA 30# For /proc/[pid]/cgroup accessing 31typeattribute thermalloadalgod mlstrustedsubject; 32allow thermalloadalgod proc:dir { search getattr }; 33allow thermalloadalgod shell:dir search; 34allow thermalloadalgod platform_app:dir search; 35allow thermalloadalgod platform_app:file { open read getattr }; 36allow thermalloadalgod priv_app:dir search; 37allow thermalloadalgod priv_app:file { open read getattr }; 38allow thermalloadalgod system_app:dir search; 39allow thermalloadalgod system_app:file { open read getattr }; 40allow thermalloadalgod untrusted_app:dir search; 41allow thermalloadalgod untrusted_app:file { open read getattr }; 42allow thermalloadalgod mediaserver:dir search; 43allow thermalloadalgod mediaserver:file { open read getattr }; 44allow thermalloadalgod proc_thermal:dir search; 45allow thermalloadalgod proc_thermal:file { open read write getattr }; 46