[ALPS03869840] Add selinux for graphic debug prop

[Detail]
Relable vendor defined debug property for android P
and label the following property:
1. vendor.debug.sf
2. vendor.debug.hwc
3. vendor.debug.bq

MTK-Commit-Id: 597f4da4e53b1d45c556895e0d85bdb3c6cd80a1

Change-Id: Iaa311f9049a519bd891a45f2b2ca73a61861e353
CR-Id: ALPS03869840
Feature: [Module]SurfaceFlinger/HWComposer
This commit is contained in:
Ju-Yi Cheng 2020-01-18 09:51:06 +08:00 committed by Ju-Yi Cheng (鄭如意)
parent 39aae26920
commit 8f98a88a89
4 changed files with 10 additions and 2 deletions

View File

@ -44,6 +44,7 @@ binder_call(hal_graphics_composer_default, mtk_hal_power)
# Purpose: Allow to access property
set_prop(hal_graphics_composer_default, graphics_hwc_pid_prop)
get_prop(hal_graphics_composer_default, graphics_hwc_pid_prop)
get_prop(hal_graphics_composer_default, graphics_debug_prop)
# Date : WK18.03
# Purpose: Allow to access property dev/mdp_sync

View File

@ -146,6 +146,7 @@ type mtk_thermal_config_prop, property_type;
#=============allow composer set property ============================
type graphics_hwc_pid_prop, property_type;
type graphics_debug_prop, property_type;
#============= mtkcam property ============================
type mtkcam_prop, property_type;

View File

@ -154,7 +154,12 @@ ro.vendor.md_mims_support u:object_r:mtk_telephony_sensitive_prop:s0
#=============allow processes to change thermal config================
vendor.thermal.manager.data u:object_r:mtk_thermal_config_prop:s0
#=============allow composer set property ============================
debug.sf.hwc_pid u:object_r:graphics_hwc_pid_prop:s0
vendor.debug.sf.hwc_pid u:object_r:graphics_hwc_pid_prop:s0
#=============allow graphics debug property ============================
vendor.debug.sf. u:object_r:graphics_debug_prop:s0
vendor.debug.hwc. u:object_r:graphics_debug_prop:s0
vendor.debug.bq. u:object_r:graphics_debug_prop:s0
#============= mtkcam property ============================
persist.mtkcam. u:object_r:mtkcam_prop:s0

View File

@ -57,5 +57,6 @@ allow surfaceflinger proc_perfmgr:file {open read ioctl};
# Operation : Debug
# Purpose: Allow to dump HWC backtrace
get_prop(surfaceflinger, graphics_hwc_pid_prop)
get_prop(surfaceflinger, graphics_debug_prop)
allow surfaceflinger hal_graphics_composer_default:dir search;
allow surfaceflinger hal_graphics_composer_default:lnk_file read;