[ALPS04533784] Thermal: add sepolicy for cam cooler

[Detail]
Add sepolicy to allow camera app to access /proc/driver/cl_cam_status
for camera shutdown cooler.

MTK-Commit-Id: 869396b2725b78c55382a9f34b016b5236505965

Change-Id: Iadfcfb95923c15384c7a6508525b7167e1a6e16f
Signed-off-by: jhua.zhang <jhua.zhang@mediatek.com>
CR-Id: ALPS04533784
Feature: Thermal Management
This commit is contained in:
jhua.zhang 2020-01-18 10:13:40 +08:00
parent e11759c46c
commit c95ef58ba5
3 changed files with 8 additions and 0 deletions

View File

@ -72,6 +72,7 @@ type proc_kpageflags, fs_type, proc_type;
type proc_slabtrace, fs_type, proc_type;
type proc_cmdq_debug, fs_type, proc_type;
type proc_isp_p2, fs_type, proc_type;
type proc_cl_cam_status, fs_type, proc_type;
type proc_dbg_repo, fs_type, proc_type;
type proc_isp_p2_dump, fs_type, proc_type;
type proc_isp_p2_kedump, fs_type, proc_type;

View File

@ -39,6 +39,7 @@ genfscon proc /kpageflags u:object_r:proc_kpageflags:s0
genfscon proc /mtk_memcfg/slabtrace u:object_r:proc_slabtrace:s0
genfscon proc /mtk_cmdq_debug/status u:object_r:proc_cmdq_debug:s0
genfscon proc /cpuhvfs/dbg_repo u:object_r:proc_dbg_repo:s0
genfscon proc /driver/cl_cam_status u:object_r:proc_cl_cam_status:s0
genfscon iso9660 / u:object_r:iso9660:s0

View File

@ -108,3 +108,9 @@ get_prop(platform_app, vendor_connsysfw_prop)
# Purpose : JPEG need to use PQ via MMS HIDL
allow platform_app mtk_hal_mms_hwservice:hwservice_manager find;
allow platform_app mtk_hal_mms:binder call;
# Date: 2019/05/24
# Operation : Migration
# Purpose : Camera need read cl_cam_status
# Package: com.mediatek.camera
allow platform_app proc_cl_cam_status:file r_file_perms;