mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 03:40:35 +00:00
sepolicy: move thermal HAL to thermal-engine
Move standalone Thermal HAL daemon permissions to thermal-engine Thermal HAL for Qualcomm-based devices is now served by the vendor daemon for thermal management: thermal-engine. Bug: 30982366 Test: manual on walleye: audit logs Change-Id: I95e8dde9825b99c5ad28212f4eb34b774d1759e9
This commit is contained in:
4
sepolicy/vendor/hal_thermal_default.te
vendored
4
sepolicy/vendor/hal_thermal_default.te
vendored
@@ -1,4 +0,0 @@
|
||||
allow hal_thermal_default sysfs_thermal:dir { open read search };
|
||||
allow hal_thermal_default sysfs_thermal:file { getattr open read };
|
||||
allow hal_thermal_default sysfs_thermal:lnk_file read;
|
||||
allow hal_thermal_default proc_stat:file { getattr open read };
|
||||
5
sepolicy/vendor/thermal-engine.te
vendored
5
sepolicy/vendor/thermal-engine.te
vendored
@@ -14,8 +14,13 @@ allow thermal-engine sysfs_soc:dir search;
|
||||
allow thermal-engine sysfs_soc:file r_file_perms;
|
||||
allow thermal-engine sysfs_thermal:dir r_dir_perms;
|
||||
allow thermal-engine sysfs_thermal:file rw_file_perms;
|
||||
allow thermal-engine sysfs_thermal:lnk_file read;
|
||||
allow thermal-engine sysfs_rmtfs:dir search;
|
||||
allow thermal-engine sysfs_rmtfs:file r_file_perms;
|
||||
# to read /proc/stat
|
||||
allow thermal-engine proc_stat:file { getattr open read };
|
||||
# IThermal Thermal HAL
|
||||
hal_server_domain(thermal-engine, hal_thermal)
|
||||
|
||||
allow thermal-engine thermal_device:chr_file rw_file_perms;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user