Home | History | Annotate | Download | only in sepolicy
      1 type thermald, domain, 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 type_transition thermald socket_device:sock_file thermald_socket;
     11 allow thermald thermald_socket:sock_file create_file_perms;
     12 
     13 allow thermald sysfs_thermal:dir r_dir_perms;
     14 allow thermald sysfs_thermal:file rw_file_perms;
     15 
     16 allow thermald sysfs_msm_subsys:dir r_dir_perms;
     17 allow thermald sysfs_msm_subsys:lnk_file rw_file_perms;
     18 
     19 allow thermald sysfs_thermal:file write;
     20 
     21 # Grant access to Qualcomm MSM Interface (QMI) radio sockets to system services
     22 # (e.g., LocationManager)
     23 qmux_socket(thermald)
     24 
     25 # Reboot the device
     26 set_prop(thermald, powerctl_prop)
     27