Merge "[ALPS03940710] add label for usb hidl" into alps-trunk-p0.basic

Change-Id: Ifd17e518fa4ba237d1c9b04be5762a6c8493a7e5
MTK-Commit-Id: 541efed4e54b21f44b78d04078719c39442039a7
This commit is contained in:
Eddie Hung 2020-01-18 09:54:45 +08:00 committed by Gerrit Code Review
commit db291e3ad3
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};