[Detail] There are some selinux violation for app in MTBF, need to add some sepolicy for them. [Solution] 1.Add sepolicy 2.Move sepolicy of untrusted_app_* to untrusted_app_*.te 3.Modify sepolicy MTK-Commit-Id: 62b5c74c6d1d85acf0184fc18fca0b40c4a8e60c Change-Id: Icac33ccc54b691ee0e4ab7088f77adb1c1a4a549 CR-Id: ALPS04640303 Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
20 lines
816 B
Plaintext
20 lines
816 B
Plaintext
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
|
|
# Date : 2017/08/01
|
|
# Operation: SQC
|
|
# Purpose : Allow Whatstemp, a MTK thermal logging tool, to log thermal related information
|
|
# properly for thermal tests at OEM/ODM.
|
|
allow untrusted_app_25 proc_mtktz:dir search;
|
|
allow untrusted_app_25 proc_mtktz:file r_file_perms;
|
|
allow untrusted_app_25 proc_thermal:dir search;
|
|
allow untrusted_app_25 proc_thermal:file r_file_perms;
|
|
|
|
allow untrusted_app_25 sysfs_fps:dir search;
|
|
allow untrusted_app_25 sysfs_fps:file r_file_perms;
|
|
allow untrusted_app_25 sysfs_batteryinfo:dir search;
|
|
#allow untrusted_app_25 sysfs_batteryinfo:file { getattr open read };
|
|
allow untrusted_app_25 sysfs_therm:dir r_dir_perms;
|
|
allow untrusted_app_25 sysfs_therm:file r_file_perms;
|