[ALPS04714861] dumpstate: add selinux policy

1.relabel mmcblk1 to sysfs_devices_block in sysfs
2.allow dumpstate access sysfs_devices_block

MTK-Commit-Id: 359f985388d45abc8b47a95ef71fccf72259ee35

Change-Id: I1e83b8f6f6bdba20965b7f976f9589363d28c48d
CR-Id: ALPS04714861
Feature: Android Exception Engine(AEE)
This commit is contained in:
Huan Tang 2020-01-18 10:18:08 +08:00
parent 53d88ba13c
commit 943a2db478
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ allow dumpstate mnt_media_rw_file:dir getattr;
# Date: 19/07/15 # Date: 19/07/15
# Purpose: fix google dumpstate avc error in xTs # Purpose: fix google dumpstate avc error in xTs
allow dumpstate sysfs_mmcblk1:file r_file_perms; allow dumpstate sysfs_devices_block:file r_file_perms;
allow dumpstate proc_last_kmsg:file r_file_perms; allow dumpstate proc_last_kmsg:file r_file_perms;
# Date: 19/07/15 # Date: 19/07/15

View File

@ -150,4 +150,4 @@ genfscon sysfs /devices/platform/bootdevice/host0/target0:0:0/0:0:0:2/block/sdc
# Date : 2019/07/12 # Date : 2019/07/12
# Purpose:dumpstate mmcblk1 access # Purpose:dumpstate mmcblk1 access
genfscon sysfs /devices/platform/externdevice/mmc_host/mmc1 u:object_r:sysfs_mmcblk1:s0 genfscon sysfs /devices/platform/externdevice/mmc_host/mmc1 u:object_r:sysfs_devices_block:s0