From 9b9fbdfcf9bc5bb204631078f2c1cd01dfb516c2 Mon Sep 17 00:00:00 2001 From: mtk13799 Date: Sat, 18 Jan 2020 09:53:24 +0800 Subject: [PATCH] [ALPS03936313] NE occured on ccci_fsd [Detail]ccci_fsd cannot open nvdata for selinux rule [Solution]add selinux rules MTK-Commit-Id: 187a7abec272b2e4201d7897d6608e5fafbc9070 Change-Id: Idd88dfc3d27d68584ca32be1e0128f21a29a7524 Signed-off-by: mtk13799 CR-Id: ALPS03936313 Feature: Modem Interface Driver --- non_plat/ccci_fsd.te | 3 +++ non_plat/property.te | 3 +++ non_plat/property_contexts | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/non_plat/ccci_fsd.te b/non_plat/ccci_fsd.te index 742aebe..31e7bf3 100644 --- a/non_plat/ccci_fsd.te +++ b/non_plat/ccci_fsd.te @@ -53,6 +53,9 @@ allow ccci_fsd rawfs:file create_file_perms; allow ccci_fsd sysfs_ccci:dir search; allow ccci_fsd sysfs_ccci:file r_file_perms; +#============= ccci_fsd ============== +allow ccci_fsd mnt_vendor_file:dir search; + # Purpose: for fstab parser allow ccci_fsd kmsg_device:chr_file w_file_perms; allow ccci_fsd proc_lk_env:file rw_file_perms; diff --git a/non_plat/property.te b/non_plat/property.te index 55ec168..5dd4cdd 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -178,3 +178,6 @@ type mtk_debug_wifi_level_prop, property_type, mtk_core_property_type; #=============allow EM to set BT ssp debug mode property================ type mtk_bt_sspdebug_prop, property_type, mtk_core_property_type; + +#=============allow ccci_mdinit get ccci_fsd property=========== +type mtk_ccci_fsd_prop, property_type, mtk_core_property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index ce6faa5..96e9352 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -107,13 +107,13 @@ ctl.emdlogger5 u:object_r:ctl_emcsmdlogger_prop:s0 ctl.eemcs_fsd u:object_r:ctl_eemcs_fsd_prop:s0 #=============allow c2k_prop ============== -net.cdma.mdmstat u:object_r:net_cdma_mdmstat:s0 +vendor.net.cdma.mdmstat u:object_r:net_cdma_mdmstat:s0 #=============allow bt prop============== bt. u:object_r:bt_prop:s0 persist.bt. u:object_r:persist_bt_prop:s0 #=============allow ccci_mdinit md status ============== -mtk.md u:object_r:mtk_md_prop:s0 +vendor.mtk.md u:object_r:mtk_md_prop:s0 #============= allow factory idle current prop ============== vendor.debug.factory.idle_state u:object_r:vendor_factory_idle_state_prop:s0 @@ -195,3 +195,6 @@ persist.vendor.debug.wifi_fw_level u:object_r:mtk_debug_wifi_level_prop:s0 #=============allow EM to set BT ssp debug mode property================ persist.vendor.bt.sspdebug.enable u:object_r:mtk_bt_sspdebug_prop:s0 + +#=============allow ccci_mdinit get ccci_fsd property=========== +init.svc.ccci_fsd u:object_r:mtk_ccci_fsd_prop:s0