From 91db3fba0d00e76fc12de49c30af15754c533eb4 Mon Sep 17 00:00:00 2001 From: Shirayuki39 Date: Fri, 26 Jul 2024 02:52:36 +0800 Subject: [PATCH] LG8n: sepolicy: Change mtk_hal_audio Signed-off-by: Shirayuki39 --- sepolicy/vendor/awinic.te | 1 - sepolicy/vendor/hal_audio_default.te | 2 ++ sepolicy/vendor/mtk_hal_audio.te | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 sepolicy/vendor/awinic.te delete mode 100644 sepolicy/vendor/mtk_hal_audio.te diff --git a/sepolicy/vendor/awinic.te b/sepolicy/vendor/awinic.te deleted file mode 100644 index d37820f..0000000 --- a/sepolicy/vendor/awinic.te +++ /dev/null @@ -1 +0,0 @@ -allow mtk_hal_audio aw87xxx_vmax:file { read getattr open }; diff --git a/sepolicy/vendor/hal_audio_default.te b/sepolicy/vendor/hal_audio_default.te index aecbef2..a94aaf9 100644 --- a/sepolicy/vendor/hal_audio_default.te +++ b/sepolicy/vendor/hal_audio_default.te @@ -4,6 +4,8 @@ allow hal_audio_default mtk_audiohal_data_file:dir create_dir_perms; allow hal_audio_default mtk_audiohal_data_file:file create_file_perms; allow hal_audio_default sysfs_boot_info:file r_file_perms; allow hal_audio_default vow_device:chr_file rw_file_perms; +allow hal_audio_default sysfs:file { read getattr open }; +allow hal_audio_default aw87xxx_vmax:file { read getattr open }; dontaudit hal_audio_default hal_power_hwservice:hwservice_manager find; diff --git a/sepolicy/vendor/mtk_hal_audio.te b/sepolicy/vendor/mtk_hal_audio.te deleted file mode 100644 index 2b7061c..0000000 --- a/sepolicy/vendor/mtk_hal_audio.te +++ /dev/null @@ -1 +0,0 @@ -allow mtk_hal_audio sysfs:file { read getattr open };