sepolicy: label cpu temps as sysfs_thermal (fixes temps reporting in enforcing)

This commit is contained in:
Mister Oyster 2017-11-20 19:15:51 +01:00
parent 0266efce2d
commit 38ad2b6fa7
7 changed files with 17 additions and 0 deletions

View File

@ -21,6 +21,7 @@ type msensord_daemon_sysfs, fs_type, sysfs_type;
type gyro_orientation_sysfs, fs_type, sysfs_type;
type perf_control_sysfs, fs_type, sysfs_type;
type smartwake_sysfs, fs_type, sysfs_type;
type thermal_sysfs, fs_type, sysfs_type;
type proc_mtkcooler, fs_type;
type proc_mtktz, fs_type;

View File

@ -120,6 +120,7 @@
/sys/devices/.*/queue/scheduler u:object_r:perf_control_sysfs:s0
/sys/devices/platform/mx-gs/gesture_control u:object_r:smartwake_sysfs:s0
/sys/class/meizu/ps/ps_calibration u:object_r:meizu_ps_calibration_trigger:s0
/sys/devices/virtual/thermal/thermal_zone*/temp u:object_r:thermal_sysfs:s0
# Config/Runtime files
/data/agps_supl(/.*)? u:object_r:agpsd_data_file:s0

View File

@ -6,3 +6,6 @@ allow platform_app pq_service:service_manager find;
# dev_info
allow platform_app sysfs_devinfo:file r_file_perms;
# thermal
allow platform_app sysfs_thermal:file r_file_perms;

View File

@ -6,3 +6,6 @@ allow priv_app pq_service:service_manager find;
# dev_info
allow priv_app sysfs_devinfo:file r_file_perms;
# thermal
allow priv_app sysfs_thermal:file r_file_perms;

View File

@ -6,3 +6,6 @@ allow system_app em_svr:unix_stream_socket connectto;
# dev_info
allow system_app sysfs_devinfo:file r_file_perms;
# thermal
allow system_app sysfs_thermal:file r_file_perms;

View File

@ -28,3 +28,6 @@ allow system_server wifi_data_file:sock_file unlink;
# dev_info
allow system_server sysfs_devinfo:file r_file_perms;
# thermal
allow system_server sysfs_thermal:file r_file_perms;

View File

@ -1,2 +1,5 @@
# PQ
allow untrusted_app pq_service:service_manager find;
# thermal
allow untrusted_app sysfs_thermal:file r_file_perms;