From e5e555d7476b56398087047d5dc70769aca049e5 Mon Sep 17 00:00:00 2001 From: "yu.shen" Date: Sat, 18 Jan 2020 10:06:29 +0800 Subject: [PATCH] [ALPS04061953] add open permission for mtk_hal_usb avc: denied { open } for path="/sys/devices/platform/mt_usb/ musb-hdrc/dual_role_usb/dual-role-usb20" dev="sysfs" ino=15855 scontext=u:r:mtk_hal_usb:s0 tcontext=u:object_r:sysfs_dual_role_usb20 :s0 tclass=dir permissive=0 MTK-Commit-Id: dab87b6e7a339c9c3c6a2ce5e0b573b349a9990c Change-Id: I9c1fd8af9408e3a799fc0a5e245c646c7c27db41 CR-Id: ALPS04061953 Feature: [Android Default] USB OTG --- non_plat/hal_usb.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/non_plat/hal_usb.te b/non_plat/hal_usb.te index 3d43bee..b1f7134 100644 --- a/non_plat/hal_usb.te +++ b/non_plat/hal_usb.te @@ -7,5 +7,5 @@ init_daemon_domain(mtk_hal_usb) allow hal_usb_default sysfs_dual_role_usb20:dir {search read}; allow hal_usb_default sysfs_dual_role_usb20:file {open read getattr}; -allow mtk_hal_usb sysfs_dual_role_usb20:dir {search read}; +allow mtk_hal_usb sysfs_dual_role_usb20:dir {search read open}; allow mtk_hal_usb sysfs_dual_role_usb20:file {open read getattr};