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:
commit
d0d4b0cbb5
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
@ -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;
|
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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user