From 9a173136586d63e6d2daa6f8285ee703fbe4af89 Mon Sep 17 00:00:00 2001 From: xin xu Date: Sat, 18 Jan 2020 10:18:29 +0800 Subject: [PATCH] [ALPS04329540] ccci: add sepolicy rule for ccci_mdinit add a init.svc.aee_aedv sepolicy rule. MTK-Commit-Id: 6777d53c3d3fa914fbf1aefe999eb90db6300e45 Change-Id: I7acfe0fe761b63c6560dffc083162157832aa6a7 CR-Id: ALPS04329540 Feature: Modem Interface Driver (cherry picked from commit 1e62fd097cee1270807f1e807feecbf313dac750) --- non_plat/ccci_mdinit.te | 1 + plat_private/property_contexts | 1 + plat_public/property.te | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/non_plat/ccci_mdinit.te b/non_plat/ccci_mdinit.te index 24831be..11d33c7 100644 --- a/non_plat/ccci_mdinit.te +++ b/non_plat/ccci_mdinit.te @@ -48,6 +48,7 @@ set_prop(ccci_mdinit, ctl_ccci3_fsd_prop) get_prop(ccci_mdinit, vendor_default_prop) get_prop(ccci_mdinit, init_svc_emdlogger1_prop) +get_prop(ccci_mdinit, init_svc_aee_aedv_prop) allow ccci_mdinit ccci_device:chr_file rw_file_perms; allow ccci_mdinit ccci_monitor_device:chr_file rw_file_perms; diff --git a/plat_private/property_contexts b/plat_private/property_contexts index 7eff1cd..66792db 100644 --- a/plat_private/property_contexts +++ b/plat_private/property_contexts @@ -5,6 +5,7 @@ ctl.emdlogger2 u:object_r:ctl_emdlogger2_prop:s0 ctl.emdlogger3 u:object_r:ctl_emdlogger3_prop:s0 init.svc.emdlogger1 u:object_r:init_svc_emdlogger1_prop:s0 +init.svc.aee_aedv u:object_r:init_svc_aee_aedv_prop:s0 #allow mtk audio hidl service to read "ro.audio.usb.period_us" ro.audio.usb.period_us u:object_r:exported_default_prop:s0 exact int diff --git a/plat_public/property.te b/plat_public/property.te index ab51d9f..976018b 100644 --- a/plat_public/property.te +++ b/plat_public/property.te @@ -5,4 +5,5 @@ type ctl_emdlogger2_prop, property_type; type ctl_emdlogger3_prop, property_type; type ctl_dualmdlogger_prop, property_type; -type init_svc_emdlogger1_prop, property_type; \ No newline at end of file +type init_svc_emdlogger1_prop, property_type; +type init_svc_aee_aedv_prop, property_type; \ No newline at end of file