From b2327f2a224bb80235d2abe179b1aaaaa9ff1e85 Mon Sep 17 00:00:00 2001 From: Ian-Y Chen Date: Sat, 18 Jan 2020 10:18:59 +0800 Subject: [PATCH] [ALPS04328846] power: add block device permission [Detail] 1. Add sysfs_dm permission 2. Add sysfs_mmcblk permission MTK-Commit-Id: c4e4b2e30f593f462d38978937c12a44f5d9f16f Change-Id: I6d301787a9df8af54a5c66e8483cd51e6d0938ad CR-Id: ALPS04328846 Feature: [Module]PowerHAL --- non_plat/mtk_hal_power.te | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/non_plat/mtk_hal_power.te b/non_plat/mtk_hal_power.te index 52e61ce..d987d93 100644 --- a/non_plat/mtk_hal_power.te +++ b/non_plat/mtk_hal_power.te @@ -118,6 +118,14 @@ allow mtk_hal_power debugfs_mdla_power:file rw_file_perms; allow mtk_hal_power rild_oem_socket:sock_file write; allow mtk_hal_power rild:unix_stream_socket connectto; +# Date : 2019/05/22 +# Operation: SQC +# Purpose : Allow powerHAL to access block read ahead +allow mtk_hal_power sysfs_dm:dir r_dir_perms; +allow mtk_hal_power sysfs_dm:file rw_file_perms; +allow mtk_hal_power sysfs_mmcblk:dir r_dir_perms; +allow mtk_hal_power sysfs_mmcblk:file rw_file_perms; + allow mtk_hal_power debugfs_eara_thermal:dir search; allow mtk_hal_power debugfs_eara_thermal:file { getattr open write read }; @@ -138,3 +146,4 @@ allowxperm mtk_hal_power self:udp_socket ioctl priv_sock_ioctls; # Operation : MTK power hal migration # Purpose : MTK power hal interface permission set_prop(mtk_hal_power, mtk_powerhal_prop) +