diff --git a/non_plat/ccci_mdinit.te b/non_plat/ccci_mdinit.te index 3d11d0d..4244506 100644 --- a/non_plat/ccci_mdinit.te +++ b/non_plat/ccci_mdinit.te @@ -100,3 +100,9 @@ allow ccci_mdinit sysfs:file r_file_perms; # Purpose : Allow ccci_mdinit to open and read/write /proc/bootprof allow ccci_mdinit proc:file rw_file_perms; allow ccci_mdinit proc:file getattr; + +# Date : WK18.21 +# Operation: P migration +# Purpose: Allow to search /mnt/vendor/nvdata for fstab when using NVM_Init() +allow ccci_mdinit mnt_vendor_file:dir search; + diff --git a/non_plat/fuelgauged.te b/non_plat/fuelgauged.te index c03c59d..b687d2b 100644 --- a/non_plat/fuelgauged.te +++ b/non_plat/fuelgauged.te @@ -89,3 +89,8 @@ allow fuelgauged nvcfg_file:file { read write getattr open create }; # Purpose : add fuelgauged could access r_dir_file(fuelgauged, sysfs_batteryinfo); +# Date : WK18.21 +# Operation: P migration +# Purpose: Allow to search /mnt/vendor/nvdata for fstab when using NVM_Init() +allow fuelgauged mnt_vendor_file:dir search; + diff --git a/non_plat/fuelgauged_nvram.te b/non_plat/fuelgauged_nvram.te index 7ec62dc..2b3462b 100644 --- a/non_plat/fuelgauged_nvram.te +++ b/non_plat/fuelgauged_nvram.te @@ -66,3 +66,10 @@ allow fuelgauged_nvram nvcfg_file:file { read write getattr open create }; # Operation : add label for /sys/devices/platform/battery(/.*) # Purpose : add fuelgauged could access r_dir_file(fuelgauged_nvram, sysfs_batteryinfo) + + +# Date : WK18.21 +# Operation: P migration +# Purpose: Allow to search /mnt/vendor/nvdata for fstab when using NVM_Init() +allow fuelgauged_nvram mnt_vendor_file:dir search; + diff --git a/non_plat/mtk_hal_audio.te b/non_plat/mtk_hal_audio.te index 7695176..66b572f 100644 --- a/non_plat/mtk_hal_audio.te +++ b/non_plat/mtk_hal_audio.te @@ -232,3 +232,8 @@ binder_call(mtk_hal_audio, mtk_hal_power) binder_call(mtk_hal_audio, merged_hal_service) # cm4 smartpa allow mtk_hal_audio audio_ipi_device:chr_file { read write ioctl open }; + +# Date : WK18.21 +# Operation: P migration +# Purpose: Allow to search /mnt/vendor/nvdata for fstab when using NVM_Init() +allow mtk_hal_audio mnt_vendor_file:dir search; \ No newline at end of file diff --git a/non_plat/mtk_hal_sensors.te b/non_plat/mtk_hal_sensors.te index 1670d70..e15b8fd 100644 --- a/non_plat/mtk_hal_sensors.te +++ b/non_plat/mtk_hal_sensors.te @@ -61,4 +61,11 @@ allow mtk_hal_sensors sensor_data_file:file create_file_perms; allow mtk_hal_sensors sensor_data_file:dir create_dir_perms; # for nvcfg allow mtk_hal_sensors nvcfg_file:file create_file_perms; -allow mtk_hal_sensors nvcfg_file:dir create_dir_perms; \ No newline at end of file +allow mtk_hal_sensors nvcfg_file:dir create_dir_perms; + + +# Date : WK18.21 +# Operation: P migration +# Purpose: Allow to search /mnt/vendor/nvdata for fstab when using NVM_Init() +allow mtk_hal_sensors mnt_vendor_file:dir search; +