summaryrefslogtreecommitdiff
path: root/thermal/hal_thermal_default.te
blob: 45ccf3ad0224452460615dc6557f60cbfd5d8049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
allow hal_thermal_default sysfs_thermal:dir r_dir_perms;
allow hal_thermal_default sysfs_thermal:file rw_file_perms;
allow hal_thermal_default sysfs_thermal:lnk_file r_file_perms;
allow hal_thermal_default thermal_link_device:dir r_dir_perms;
allow hal_thermal_default proc_stat:file r_file_perms;
allow hal_thermal_default self:netlink_generic_socket create_socket_perms_no_ioctl;
allow hal_thermal_default self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;

hal_client_domain(hal_thermal_default, hal_power);

# read thermal_config
get_prop(hal_thermal_default, vendor_thermal_prop)

# Needed for reporting thermal stats event
allow hal_thermal_default fwk_stats_service:service_manager find;
binder_call(hal_thermal_default, servicemanager)