Josh-YC Liu 5f38aed9a3 [ALPS04027706] PQ: revise SELinux policy
Remove PQ SELinux policy for Android P untrusted_app.

MTK-Commit-Id: 74f837b0da64d6b7f7450d9827750486613ff803

Change-Id: I185c8c6d81d17d24af43459d1b333ac9a71d01f1
CR-Id: ALPS04027706
Feature: Display Quality Enhancement
(cherry picked from commit 031a84a9d8da7c704c405380da45cba1c6635bb4)
2020-01-18 10:05:25 +08:00

29 lines
1.1 KiB
Plaintext

# ==============================================
# MTK Policy Rule
# ==============================================
# TODO:: Security Issue.
# Date: 2016/02/26
# Operation: Migration
# Purpose: Allow MTK modified ElephantStress and WhatsTemp to read thermal zone temperatures
# from MTK kernel modules for thermal tests at OEM/ODM.
allow untrusted_app proc_mtktz:dir search;
allow untrusted_app proc_mtktz:file r_file_perms;
# 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 { getattr open read };
allow untrusted_app_25 proc_thermal:dir search;
allow untrusted_app_25 proc_thermal:file { getattr open read };
allow untrusted_app_25 sysfs_fps:dir search;
allow untrusted_app_25 sysfs_fps:file { getattr open read };
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 { open read search };
allow untrusted_app_25 sysfs_therm:file { getattr open read };