[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
This commit is contained in:
Ian-Y Chen 2020-01-18 10:20:54 +08:00 committed by May Huang
parent 34e4338c7e
commit 8695ad239f
3 changed files with 4 additions and 0 deletions

View File

@ -400,6 +400,7 @@ type proc_ppm, fs_type, proc_type;
type proc_cpufreq, fs_type, proc_type; type proc_cpufreq, fs_type, proc_type;
type proc_hps, fs_type, proc_type; type proc_hps, fs_type, proc_type;
type proc_cm_mgr, 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_ged, fs_type, sysfs_type;
type sysfs_fbt_cpu, fs_type, sysfs_type; type sysfs_fbt_cpu, fs_type, sysfs_type;
type sysfs_fbt_fteh, fs_type, sysfs_type; type sysfs_fbt_fteh, fs_type, sysfs_type;

View File

@ -236,6 +236,7 @@ genfscon proc /ppm u:object_r:proc_ppm:s0
genfscon proc /cpufreq u:object_r:proc_cpufreq:s0 genfscon proc /cpufreq u:object_r:proc_cpufreq:s0
genfscon proc /hps u:object_r:proc_hps:s0 genfscon proc /hps u:object_r:proc_hps:s0
genfscon proc /cm_mgr u:object_r:proc_cm_mgr: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/ged u:object_r:sysfs_ged:s0
genfscon sysfs /module/fbt_cpu u:object_r:sysfs_fbt_cpu: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 genfscon sysfs /module/fbt_fteh u:object_r:sysfs_fbt_fteh:s0

View File

@ -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_hps:file rw_file_perms;
allow mtk_hal_power proc_cm_mgr:dir r_dir_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_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:dir r_dir_perms;
allow mtk_hal_power sysfs_ged:file rw_file_perms; allow mtk_hal_power sysfs_ged:file rw_file_perms;
allow mtk_hal_power sysfs_fbt_cpu:dir r_dir_perms; allow mtk_hal_power sysfs_fbt_cpu:dir r_dir_perms;