diff --git a/non_plat/factory.te b/non_plat/factory.te index d47678a..aed32e7 100644 --- a/non_plat/factory.te +++ b/non_plat/factory.te @@ -400,3 +400,11 @@ get_prop(factory, exported3_radio_prop) # Operation : Q Migration # Purpose: Allow clear eMMC set_prop(factory, ctl_mdlogger_prop); + +# Date : WK19.41 +# Operation : Q Migration +# Purpose: allow system_server to access rt5509 param and calib node +allow factory sysfs_rt_param:file rw_file_perms; +allow factory sysfs_rt_calib:file rw_file_perms; +allow factory sysfs_rt_param:dir r_dir_perms; +allow factory sysfs_rt_calib:dir r_dir_perms; diff --git a/non_plat/file.te b/non_plat/file.te index 6ca32cb..730870a 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -90,6 +90,8 @@ type sysfs_vcorefs_pwrctrl, fs_type, sysfs_type; type sysfs_md32, fs_type, sysfs_type; type sysfs_scp, fs_type, sysfs_type; type sysfs_adsp, fs_type, sysfs_type; +type sysfs_rt_param, fs_type, sysfs_type; +type sysfs_rt_calib, fs_type, sysfs_type; type sysfs_sspm, fs_type, sysfs_type; type sysfs_devinfo, fs_type, sysfs_type, mlstrustedobject; type sysfs_dcm, fs_type, sysfs_type; diff --git a/non_plat/genfs_contexts b/non_plat/genfs_contexts index cb30065..f4d85cd 100644 --- a/non_plat/genfs_contexts +++ b/non_plat/genfs_contexts @@ -268,3 +268,9 @@ genfscon sysfs /kernel/mm/ksm/pages_volatile u:object_r:sysfs_pages_volatile:s0 # Purpose : To avoid using the SELabel of u:object_r:proc:s0 or u:object_r:sysfs:s0 # to access /proc/device-tree/chosen/atag,chipid or /sysfs/firmware/devicetree/base/chosen/atag,chipid genfscon sysfs /firmware/devicetree/base/chosen/atag,chipid u:object_r:sysfs_chipid:s0 + +# Date : 2019/10/18 +# Purpose : allow system_server to access rt5509 param and calib node +genfscon sysfs /devices/platform/rt5509_param.0 u:object_r:sysfs_rt_param:s0 +genfscon sysfs /devices/virtual/rt5509_cal/rt5509.0 u:object_r:sysfs_rt_calib:s0 + diff --git a/non_plat/mtk_hal_audio.te b/non_plat/mtk_hal_audio.te index ffd5c7c..48ef236 100644 --- a/non_plat/mtk_hal_audio.te +++ b/non_plat/mtk_hal_audio.te @@ -99,6 +99,10 @@ allow mtk_hal_audio graphics_device:chr_file rw_file_perms; # Operation : Migration # Purpose : Smartpa allow mtk_hal_audio smartpa_device:chr_file rw_file_perms; +allow mtk_hal_audio sysfs_rt_param:file rw_file_perms; +allow mtk_hal_audio sysfs_rt_calib:file rw_file_perms; +allow mtk_hal_audio sysfs_rt_param:dir r_dir_perms; +allow mtk_hal_audio sysfs_rt_calib:dir r_dir_perms; # Date : WK14.41 # Operation : Migration