Merge "[ALPS03841839] Add policy for using nvram function" into alps-trunk-p0.basic

Change-Id: I416088d35348af0176c0dbe409969700a4945079
MTK-Commit-Id: 08f1090f103d60139545422ba9bc95647e6140a1
This commit is contained in:
Denis Hsu 2020-01-18 09:51:59 +08:00 committed by Gerrit Code Review
commit d0d4b0cbb5
5 changed files with 31 additions and 1 deletions

View File

@ -100,3 +100,9 @@ allow ccci_mdinit sysfs:file r_file_perms;
# Purpose : Allow ccci_mdinit to open and read/write /proc/bootprof # Purpose : Allow ccci_mdinit to open and read/write /proc/bootprof
allow ccci_mdinit proc:file rw_file_perms; allow ccci_mdinit proc:file rw_file_perms;
allow ccci_mdinit proc:file getattr; 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;

View File

@ -89,3 +89,8 @@ allow fuelgauged nvcfg_file:file { read write getattr open create };
# Purpose : add fuelgauged could access # Purpose : add fuelgauged could access
r_dir_file(fuelgauged, sysfs_batteryinfo); 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;

View File

@ -66,3 +66,10 @@ allow fuelgauged_nvram nvcfg_file:file { read write getattr open create };
# Operation : add label for /sys/devices/platform/battery(/.*) # Operation : add label for /sys/devices/platform/battery(/.*)
# Purpose : add fuelgauged could access # Purpose : add fuelgauged could access
r_dir_file(fuelgauged_nvram, sysfs_batteryinfo) 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;

View File

@ -232,3 +232,8 @@ binder_call(mtk_hal_audio, mtk_hal_power)
binder_call(mtk_hal_audio, merged_hal_service) binder_call(mtk_hal_audio, merged_hal_service)
# cm4 smartpa # cm4 smartpa
allow mtk_hal_audio audio_ipi_device:chr_file { read write ioctl open }; 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;

View File

@ -62,3 +62,10 @@ allow mtk_hal_sensors sensor_data_file:dir create_dir_perms;
# for nvcfg # for nvcfg
allow mtk_hal_sensors nvcfg_file:file create_file_perms; allow mtk_hal_sensors nvcfg_file:file create_file_perms;
allow mtk_hal_sensors nvcfg_file:dir create_dir_perms; 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;