From 72de9ef5141474c4f7634fea2f59b426b99cf83f Mon Sep 17 00:00:00 2001 From: Denis Hsu Date: Sat, 18 Jan 2020 09:51:33 +0800 Subject: [PATCH] [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 --- non_plat/nvram_daemon.te | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/non_plat/nvram_daemon.te b/non_plat/nvram_daemon.te index 309177d..4155038 100644 --- a/non_plat/nvram_daemon.te +++ b/non_plat/nvram_daemon.te @@ -105,3 +105,10 @@ allow nvram_daemon sysfs:file read; # Operation: P migration # Purpose: Allow nvram_daemon to get 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 }; +