From 980fcee3990876c9da6bc6a7a6d621ba1bb213f1 Mon Sep 17 00:00:00 2001 From: Qilin Tan Date: Sat, 18 Jan 2020 10:18:59 +0800 Subject: [PATCH] [ALPS04745284] sepolicy: add BLKGETSIZE rule for bootdevice in MT6763 In factory mode, It is failed that get size of sdcard in sdcard test. Because the policy BLKGETSIZE is missed. Add the policy rule, the test case will pass. MTK-Commit-Id: 80a2d4ddd763ea35fb6c7fdf5dda40d158c1c95c Change-Id: I88c685e98bb1439b0992d39285a715020a7c1ce3 CR-Id: ALPS04745284 Feature: Factory Mode --- non_plat/factory.te | 1 + 1 file changed, 1 insertion(+) diff --git a/non_plat/factory.te b/non_plat/factory.te index fc5cea0..b1593fb 100644 --- a/non_plat/factory.te +++ b/non_plat/factory.te @@ -129,6 +129,7 @@ allow factory bootdevice_block_device:blk_file rw_file_perms; allow factory mmcblk1p1_block_device:blk_file rw_file_perms; allow factory block_device:dir w_dir_perms; allowxperm factory mmcblk1_block_device:blk_file ioctl BLKGETSIZE; +allowxperm factory bootdevice_block_device:blk_file ioctl BLKGETSIZE; #Purpose: For EMMC test allow factory nvdata_file:dir create_dir_perms;