summaryrefslogtreecommitdiffstats
path: root/non_plat/hal_thermal_default.te
blob: 50e069cd26257b9c6ae019de0532125a21ae2643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# Date : WK18.23
# Operation : P Migration
# Purpose : add grant permission for Thermal HAL mtktz and proc

allow hal_thermal_default proc_mtktz:dir search;
allow hal_thermal_default proc_mtktz:file {open read getattr};
allow hal_thermal_default proc_stat:file {open read getattr };

#for uevent handle
allow hal_thermal_default self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;

#for thermal sysfs
allow hal_thermal_default sysfs_therm:file w_file_perms;
allow hal_thermal_default sysfs_therm:file r_file_perms;
allow hal_thermal_default sysfs_therm:dir search;