From eec29a36bcff57b3ec43175d2ce45e14b0a50040 Mon Sep 17 00:00:00 2001 From: mtk13858 Date: Sat, 18 Jan 2020 10:06:29 +0800 Subject: [PATCH] [ALPS04004689] CCCI:update sepolicy for mdlpm [Detail] when ccci_fsd create mdlpm,sepolicy issue happen [Solution] add sysfs_mmcblk&vendor_data_file permission to solve sepolicy issue MTK-Commit-Id: 874b0398d34d3186af1e2e496480c5f74797fdb0 Change-Id: I84681b5d372580fc31baad10cfa43ae4804b6e9c Signed-off-by: mtk13858 CR-Id: ALPS04004689 Feature: Modem Interface Driver (cherry picked from commit 6eb34cdbba937a22bbce794d932d3cbc99f56729) (cherry picked from commit 702f6a7ad67b2b89d5a884a03a1abf92b990ef22) --- non_plat/ccci_fsd.te | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/non_plat/ccci_fsd.te b/non_plat/ccci_fsd.te index 76fca91..370fb23 100644 --- a/non_plat/ccci_fsd.te +++ b/non_plat/ccci_fsd.te @@ -61,3 +61,9 @@ 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; + +#============= ccci_fsd MD Low Power Monitor Related ============== +allow ccci_fsd vendor_data_file:dir create_dir_perms; +allow ccci_fsd vendor_data_file:file create_file_perms; +allow ccci_fsd sysfs_mmcblk:dir search; +allow ccci_fsd sysfs_mmcblk:file { read getattr open };