From 02046e7138a2f913bde52cf6252dea809e23ed9a Mon Sep 17 00:00:00 2001 From: Light Hsieh Date: Sat, 18 Jan 2020 10:05:59 +0800 Subject: [PATCH] [ALPS04046768] Factory: add sepolicy for Storage item in factory mode [Detail] Add sepolicy for Storage item in factory mode so that factory can access /sys/class/block/mmcblk0/. MTK-Commit-Id: b3e289e9ea36a4d2581365a73ecae798c4fc60e0 Change-Id: I14222cef75b5e0516cb7a767cdb3487d38dbd95b CR-Id: ALPS04046768 Feature: Factory Mode --- non_plat/factory.te | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/non_plat/factory.te b/non_plat/factory.te index 49719a0..47558e5 100644 --- a/non_plat/factory.te +++ b/non_plat/factory.te @@ -352,4 +352,8 @@ r_dir_file(factory, sysfs_switch) allow factory vendor_data_file:dir { add_name read write}; allow factory vendor_data_file:file { create read write open }; - +# Date : WK18.31 +# Operation: P migration +# Purpose : Refine policy +allow factory sysfs_mmcblk:dir { search }; +allow factory sysfs_mmcblk:file { read getattr open };