From 59d02b5260c5f14e6882eea4e2ce4aa60d4387fd Mon Sep 17 00:00:00 2001 From: mkt15300 Date: Sat, 18 Jan 2020 09:45:32 +0800 Subject: [PATCH] [ALPS03852480] add sepolicy for mediacodec getattr proc_thermal [Detail] Add sepolicy for mediacodec since SW decoder would control CPU freq and will need to getattr proc_thermal MTK-Commit-Id: 5ce3aa68771bdb3af46a43b1c3455d365256c99c Change-Id: I4ca98c4ae7b06e616e19f582190826beec490a04 CR-Id: ALPS03852480 Feature: VP9 Decoder (cherry picked from commit f173ea13c62696f30465a4cb23061e1512c0ae1f) --- non_plat/mediacodec.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/non_plat/mediacodec.te b/non_plat/mediacodec.te index 379f67b..c267535 100644 --- a/non_plat/mediacodec.te +++ b/non_plat/mediacodec.te @@ -95,7 +95,7 @@ allow mediacodec proc_mtktz:dir search; allow mediacodec proc_thermal:dir search; allow mediacodec proc_mtkcooler:file { read write open }; allow mediacodec proc_mtktz:file { read write open getattr }; -allow mediacodec proc_thermal:file { read write open }; +allow mediacodec proc_thermal:file { read write open getattr}; allow mediacodec thermal_manager_data_file:file create_file_perms; allow mediacodec thermal_manager_data_file:dir { rw_dir_perms setattr }; allow mediacodec thermal_manager_data_file:dir search;