From 56945bbceb84a0ce2d5a32b1fcd713f20955f15c Mon Sep 17 00:00:00 2001 From: mtk11515 Date: Sat, 18 Jan 2020 10:09:50 +0800 Subject: [PATCH] [ALPS04298621] MTKLogger can not get md/netlog property [Detail] kernel 4.14 SE linux change [Solution] change group read file map MTK-Commit-Id: 971e30bb8a9a2170588e9f363f6617fd90f7e2c8 Change-Id: I2834fa7c081058d49f6c0370160bb94b08cad7f7 CR-Id: ALPS04298621 Feature: MTKLogger (cherry picked from commit 6ff5e6fc63519d2298d04d1a980349f9c8169f48) --- non_plat/platform_app.te | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/non_plat/platform_app.te b/non_plat/platform_app.te index 70874f0..2aec027 100644 --- a/non_plat/platform_app.te +++ b/non_plat/platform_app.te @@ -100,8 +100,10 @@ hal_client_domain(platform_app, mtk_hal_log) # Operation : Migration # Purpose : MTKLogger need get netlog/mdlog/mobilelog property for property change # Package: com.mediatek.mtklogger -allow platform_app debug_mdlogger_prop:file { read getattr open }; -allow platform_app debug_mtklog_prop:file { read getattr open }; +# allow platform_app debug_mdlogger_prop:file r_file_perms; +# allow platform_app debug_mtklog_prop:file r_file_perms; +get_prop(platform_app, debug_mdlogger_prop) +get_prop(platform_app, debug_mtklog_prop) get_prop(platform_app, vendor_bluetooth_prop) get_prop(platform_app, mobile_log_prop)