From 8695ad239fa0adc4381fa96267642201ba510c20 Mon Sep 17 00:00:00 2001 From: Ian-Y Chen Date: Sat, 18 Jan 2020 10:20:54 +0800 Subject: [PATCH] [ALPS04328846] power: add fliperfs policy [Detail] 1. Add proc_fliperfs policy 2. Add fliperfs permission to powerhal MTK-Commit-Id: 519ec87e9f32de2f987acad288224be03b1fdde8 Change-Id: Ie3d58e1e48e0862864a70a281e2c2e3040206f09 CR-Id: ALPS04328846 Feature: [Module]PowerHAL --- non_plat/file.te | 1 + non_plat/genfs_contexts | 1 + non_plat/mtk_hal_power.te | 2 ++ 3 files changed, 4 insertions(+) diff --git a/non_plat/file.te b/non_plat/file.te index 29e229f..73479f7 100644 --- a/non_plat/file.te +++ b/non_plat/file.te @@ -400,6 +400,7 @@ type proc_ppm, fs_type, proc_type; type proc_cpufreq, fs_type, proc_type; type proc_hps, fs_type, proc_type; type proc_cm_mgr, fs_type, proc_type; +type proc_fliperfs, fs_type, proc_type; type sysfs_ged, fs_type, sysfs_type; type sysfs_fbt_cpu, fs_type, sysfs_type; type sysfs_fbt_fteh, fs_type, sysfs_type; diff --git a/non_plat/genfs_contexts b/non_plat/genfs_contexts index 511c414..6bdae85 100644 --- a/non_plat/genfs_contexts +++ b/non_plat/genfs_contexts @@ -236,6 +236,7 @@ genfscon proc /ppm u:object_r:proc_ppm:s0 genfscon proc /cpufreq u:object_r:proc_cpufreq:s0 genfscon proc /hps u:object_r:proc_hps:s0 genfscon proc /cm_mgr u:object_r:proc_cm_mgr:s0 +genfscon proc /fliperfs u:object_r:proc_fliperfs:s0 genfscon sysfs /module/ged u:object_r:sysfs_ged:s0 genfscon sysfs /module/fbt_cpu u:object_r:sysfs_fbt_cpu:s0 genfscon sysfs /module/fbt_fteh u:object_r:sysfs_fbt_fteh:s0 diff --git a/non_plat/mtk_hal_power.te b/non_plat/mtk_hal_power.te index fd64a18..9689a14 100644 --- a/non_plat/mtk_hal_power.te +++ b/non_plat/mtk_hal_power.te @@ -153,6 +153,8 @@ allow mtk_hal_power proc_hps:dir r_dir_perms; allow mtk_hal_power proc_hps:file rw_file_perms; allow mtk_hal_power proc_cm_mgr:dir r_dir_perms; allow mtk_hal_power proc_cm_mgr:file rw_file_perms; +allow mtk_hal_power proc_fliperfs:dir r_dir_perms; +allow mtk_hal_power proc_fliperfs:file rw_file_perms; allow mtk_hal_power sysfs_ged:dir r_dir_perms; allow mtk_hal_power sysfs_ged:file rw_file_perms; allow mtk_hal_power sysfs_fbt_cpu:dir r_dir_perms;