yu.shen e5e555d747 [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
2020-01-18 10:06:29 +08:00

12 lines
427 B
Plaintext

type mtk_hal_usb, domain;
hal_server_domain(mtk_hal_usb, hal_usb)
type mtk_hal_usb_exec, exec_type, file_type, vendor_file_type;
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 open};
allow mtk_hal_usb sysfs_dual_role_usb20:file {open read getattr};