[ALPS03891225] Add policy for nvram

Allow to access boot mode for nvram

MTK-Commit-Id: 42ba22047669fe5e19c2ad7919807f2dd5323950

Change-Id: Id3118a6666a068330bdeb2d4663c478aa94cd307
CR-Id: ALPS03891225
Feature: Multi-Storage
This commit is contained in:
Denis Hsu 2020-01-18 10:02:40 +08:00
parent a67cd8a97a
commit a488de6a7f
2 changed files with 3 additions and 0 deletions

View File

@ -71,3 +71,4 @@ get_prop(nvram_daemon, tel_switch_prop)
# Purpose: Allow to search /mnt/vendor/nvdata when using nvram function
allow nvram_agent_binder mnt_vendor_file:dir search;
allow nvram_agent_binder sysfs_boot_mode:file r_file_perms;

View File

@ -89,3 +89,5 @@ get_prop(nvram_daemon, tel_switch_prop)
allow nvram_daemon mnt_vendor_file:dir search;
allow nvram_daemon self:capability { fowner chown fsetid };
allow nvram_daemon sysfs_boot_mode:file r_file_perms;