[ALPS03940710] add label for usb hidl

[Detail]
Add label "sysfs_dual_role_usb20" for access
usb20 dual role path.

MTK-Commit-Id: 5022209befe791a0045b155fc070d831ef5f7beb

Change-Id: Ib7ff9a04833aff10945f51f854026a29df0747ca
CR-Id: ALPS03940710
Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
This commit is contained in:
Eddie Hung 2020-01-18 09:54:43 +08:00
parent c7143a9b62
commit 0cf1cb02d9
3 changed files with 6 additions and 0 deletions

View File

@ -267,3 +267,6 @@ type sysfs_pump_express, fs_type, sysfs_type;
# Widevine move data/mediadrm folder from system to vendor
type mediadrm_vendor_data_file, file_type, data_file_type;
# mtk usb hal
type sysfs_dual_role_usb20, fs_type, sysfs_type;

View File

@ -484,6 +484,7 @@
/sys/bus/platform/drivers/meta_uart_port_info/meta_uart_port_info(/.*)? u:object_r:sysfs_uart_info:s0
/sys/devices/platform/(charger|battery)/ADC_Charger_Voltage u:object_r:sysfs_vbus:s0
/sys/devices/platform/(charger|battery)/Pump_Express u:object_r:sysfs_pump_express:s0
/sys/devices/platform/mt_usb/musb-hdrc/dual_role_usb(/.*)? u:object_r:sysfs_dual_role_usb20:s0
#############################
# debugfs files

2
non_plat/hal_usb.te Normal file
View File

@ -0,0 +1,2 @@
allow hal_usb_default sysfs_dual_role_usb20:dir search;
allow hal_usb_default sysfs_dual_role_usb20:file {open read getattr};