Home | History | Annotate | Download | only in sepolicy
      1 # permissions for /system/bin/tune-thermal-gov.sh
      2 type thermal_gov, domain, device_domain_deprecated;
      3 type thermal_gov_exec, exec_type, file_type;
      4 
      5 init_daemon_domain(thermal_gov)
      6 
      7 allow thermal_gov shell_exec:file rx_file_perms;
      8 
      9 # write to files in /sys/class/thermal/thermal_zone
     10 allow thermal_gov sysfs:file w_file_perms;
     11 
     12 # execute toolbox/toybox
     13 allow thermal_gov toolbox_exec:file rx_file_perms;
     14