[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
This commit is contained in:
Light Hsieh 2020-01-18 10:05:59 +08:00
parent 583196d1e8
commit 02046e7138

View File

@ -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 };