From 38b4858be6da9ef42bf218d08d84cecdabbe3bbc Mon Sep 17 00:00:00 2001 From: "xiao.liu" Date: Sat, 18 Jan 2020 10:18:30 +0800 Subject: [PATCH] [ALPS04726173] Add AB partition some partition RW permission [Solution] add device/mediatek/sepolicy/basic/non_plat/fastbootd.te MTK-Commit-Id: 5529b3e558d2809977f66e3a37a43c72ad948280 Change-Id: Ie24496994f4a025850b4020066a62f13c1383f1f CR-Id: ALPS04726173 Feature: [Android Default] Fastboot --- non_plat/fastbootd.te | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 non_plat/fastbootd.te diff --git a/non_plat/fastbootd.te b/non_plat/fastbootd.te new file mode 100644 index 0000000..c9ef358 --- /dev/null +++ b/non_plat/fastbootd.te @@ -0,0 +1,18 @@ +# fastbootd (used in recovery init.rc for /sbin/fastbootd) + + +allow fastbootd { + cache_block_device + logo_block_device + para_block_device + }:blk_file { rw_file_perms }; + +allowxperm fastbootd { + cache_block_device + logo_block_device + para_block_device + }:blk_file ioctl { + BLKSECDISCARD + BLKDISCARD + }; +