[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 <xin.huang@mediatek.com>
CR-Id: ALPS03936313
Feature: Modem Interface Driver
This commit is contained in:
mtk13799 2020-01-18 09:53:24 +08:00 committed by xin.huang
parent 7c346aab63
commit 9b9fbdfcf9
3 changed files with 11 additions and 2 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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