[ALPS03841839] Copy fstab failed in nvram daemon

[Detail]
We change the nvram path to /mnt/vendor/nvdata in P.
It needs add search policy for fstab copying.

[Solution]
allow nvram_daemon mnt_vendor_file:dir search;

MTK-Commit-Id: 0695da89e80b8c635be5764c5d1ba4088c38a445

Change-Id: I7ee2bd8bc6c16ac8c904e04d1f2a00da421f551e
CR-Id: ALPS03841839
Feature: NVRAM Partition
This commit is contained in:
Denis Hsu 2020-01-18 09:51:33 +08:00
parent 042172187a
commit 72de9ef514

View File

@ -105,3 +105,10 @@ allow nvram_daemon sysfs:file read;
# Operation: P migration # Operation: P migration
# Purpose: Allow nvram_daemon to get tel_switch_prop # Purpose: Allow nvram_daemon to get tel_switch_prop
get_prop(nvram_daemon, tel_switch_prop) get_prop(nvram_daemon, tel_switch_prop)
# Date : WK18.21
# Operation: P migration
# Purpose: Allow nvram_daemon to search /mnt/vendor/nvdata for fstab
allow nvram_daemon mnt_vendor_file:dir search;
allow nvram_daemon self:capability { fowner chown fsetid };