[ALPS03856250] SIM:add policy for system set prop

Config property "vendor.gsm.sim.operator.default-name" as:
1. system image could set but vendor image cant.
2. System could read.

MTK-Commit-Id: 79e9cc75b8937a0eeb1e0a34af2095fad7182388

Change-Id: Ib14716449080c17dbd98e681215e1d89d96029a8
CR-Id: ALPS03856250
Feature: SIM
(cherry picked from commit ef7ae758c93dc94fec1f7f23c877d86a254d035d)
This commit is contained in:
lena wang 2020-01-18 10:04:28 +08:00
parent 435518d532
commit 3f037eeb36
3 changed files with 11 additions and 0 deletions

View File

@ -239,3 +239,7 @@ type mtk_pq_prop, property_type, mtk_core_property_type;
#=============mtk emmc property=============
type mtk_emmc_support_prop, property_type, mtk_core_property_type;
#=============sim system property=============
type vendor_sim_system_prop, property_type, extended_core_property_type;

View File

@ -180,6 +180,9 @@ persist.vendor.meta.connecttype u:object_r:meta_connecttype_prop:s0
vendor.ril.iccid.sim u:object_r:mtk_telephony_sensitive_prop:s0
persist.vendor.radio.last_iccid_sim u:object_r:mtk_telephony_sensitive_prop:s0
#=============allow sim config property==============
vendor.gsm.sim.operator.default-name u:object_r:vendor_sim_system_prop:s0
#=============allow processes to change thermal config================
vendor.thermal.manager.data u:object_r:mtk_thermal_config_prop:s0
#=============allow composer set property ============================

View File

@ -189,3 +189,7 @@ allow radio sysfs_headset:file { read open };
# Operation : IT
# Purpose : Allow to use HAL em
hal_client_domain(radio, mtk_hal_em)
# Date : 2018/07/03
# Purpose : Allow sim system to set prop
set_prop(radio, vendor_sim_system_prop)