From d22a2ab8885f8d91f71153f9324600633efb17a6 Mon Sep 17 00:00:00 2001 From: bengris32 Date: Thu, 15 Feb 2024 12:45:19 +0000 Subject: [PATCH] basic: non_plat: Address OSS USB gadget HAL denials Change-Id: Ie5ca5a229d145a84e940d9f29205cf3e9282531a Signed-off-by: bengris32 --- basic/non_plat/mtk_hal_usb.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/basic/non_plat/mtk_hal_usb.te b/basic/non_plat/mtk_hal_usb.te index be28b9b..fbe8003 100644 --- a/basic/non_plat/mtk_hal_usb.te +++ b/basic/non_plat/mtk_hal_usb.te @@ -12,5 +12,8 @@ hal_server_domain(mtk_hal_usb, hal_usb_gadget) r_dir_file(mtk_hal_usb, sysfs_usb_nonplat) allow mtk_hal_usb sysfs_usb_nonplat:file w_file_perms; +allow mtk_hal_usb configfs:dir { create rmdir }; +allow mtk_hal_usb functionfs:dir { watch watch_reads }; + set_prop(mtk_hal_usb, vendor_mtk_usb_prop) get_prop(mtk_hal_usb, usb_control_prop)