[ALPS04013134] CCCI:fix android p selinux issue

[Detail]
1.add label to property init.svc.emdlogger1
2.allow ccci_mdinit access get sys boot mode

MTK-Commit-Id: bc7ec844660c91ba7bb5bdc25ec176d3d2a2ec14

Change-Id: I32df4b62b474eca193f9a719e9b559597acc1ab6
Signed-off-by: mtk13858 <derong.liu@mediatek.com>
CR-Id: ALPS04013134
Feature: Modem Interface Driver
This commit is contained in:
mtk13858 2020-01-18 10:04:45 +08:00 committed by Peng Zhou
parent 9a7b03369b
commit d2412a883b
3 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,7 @@ allow ccci_mdinit sysfs_ccci:file rw_file_perms;
allow ccci_mdinit sysfs_ssw:dir search;
allow ccci_mdinit sysfs_ssw:file r_file_perms;
allow ccci_mdinit sysfs:file r_file_perms;
allow ccci_mdinit sysfs_boot_mode:file { read open };
# Purpose : Allow ccci_mdinit to open and read/write /proc/bootprof
allow ccci_mdinit proc:file rw_file_perms;

View File

@ -17,6 +17,9 @@ type ctl_gsm0710muxd_prop, property_type;
type ctl_gsm0710muxd-s_prop, property_type;
type ctl_gsm0710muxd-d_prop, property_type;
#=============allow ccci_mdinit to start emdlogger==============
type init_svc_emdlogger1_prop, property_type, mtk_core_property_type;
#=============allow viarild to start property==============
type ctl_viarild_prop, property_type;
#=============allow mtkrild to set persist.ril property==============

View File

@ -55,6 +55,8 @@ ctl.vendor.ccci_fsd u:object_r:ctl_ccci_fsd_prop:s0
ctl.vendor.ccci2_fsd u:object_r:ctl_ccci2_fsd_prop:s0
ctl.vendor.ccci3_fsd u:object_r:ctl_ccci3_fsd_prop:s0
init.svc.emdlogger1 u:object_r:init_svc_emdlogger1_prop:s0
vendor.ril.active.md u:object_r:ril_active_md_prop:s0
vendor.ril.mux.report.case u:object_r:ril_mux_report_case_prop:s0
vendor.ril.cdma.report u:object_r:ril_cdma_report_prop:s0