From 51167c8474aaccd821f1137b22f67c0f81f57058 Mon Sep 17 00:00:00 2001 From: Edison Liu Date: Sat, 18 Jan 2020 10:02:13 +0800 Subject: [PATCH] [ALPS03908752] partition:fix sysenv issue [Detail] add sepolicy for sysenv get device path by fstab MTK-Commit-Id: 3b4654113dec0bebfd1ba6f4b90fd501ccc6513d Change-Id: I8cfdaf572363f8ac9ce5276eb4ddff525dd7c841 CR-Id: ALPS03908752 Feature: eMMC Boot Up (cherry picked from commit 9a53df024a1c1a1cba9a94373b867a50956225d4) --- non_plat/sysenv_daemon.te | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/non_plat/sysenv_daemon.te b/non_plat/sysenv_daemon.te index 2625c34..73effbb 100644 --- a/non_plat/sysenv_daemon.te +++ b/non_plat/sysenv_daemon.te @@ -40,3 +40,9 @@ allow sysenv_daemon sysfs:file { open read }; # Purpose : to access mtd device allow sysenv_daemon mtd_device:blk_file { open read write }; +# Date: WK18.02 +# Operation: Create +# Purpose : get device path by read fstab in read/write lk_env +allow sysenv_daemon sysfs:dir { read open }; +allow sysenv_daemon sysfs:file getattr; +