From f5923e2c1908c92d6a5d626c007f20557623d412 Mon Sep 17 00:00:00 2001 From: bengris32 Date: Sun, 25 Sep 2022 14:03:11 +0100 Subject: [PATCH] sepolicy: basic: non_plat: Label some misc MDP properties * Also define a new type for these miscellaneous properties. Signed-off-by: bengris32 Change-Id: Ifa3dde2836771ca6c0de2fa9a4357f3787e2e61f --- basic/non_plat/property.te | 2 ++ basic/non_plat/property_contexts | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/basic/non_plat/property.te b/basic/non_plat/property.te index 92335ba..a995a29 100644 --- a/basic/non_plat/property.te +++ b/basic/non_plat/property.te @@ -121,6 +121,7 @@ vendor_restricted_prop(vendor_mtk_debug_sf_cpupolicy_prop) vendor_restricted_prop(vendor_mtk_neuropilot_flag_prop) vendor_restricted_prop(vendor_mtk_mdrsra_v2_support_prop) vendor_restricted_prop(vendor_mtk_xfrm_support_prop) +vendor_restricted_prop(vendor_mtk_mdp_prop) vendor_restricted_prop(vendor_debug_logger_prop) # Properties with can be read by all domains @@ -198,4 +199,5 @@ typeattribute vendor_mtk_mdp_debug_log_prop mtk_core_property_type; typeattribute vendor_mtk_neuropilot_flag_prop mtk_core_property_type; typeattribute vendor_mtk_mdrsra_v2_support_prop mtk_core_property_type; typeattribute vendor_mtk_xfrm_support_prop mtk_core_property_type; +typeattribute vendor_mtk_mdp_prop mtk_core_property_type; typeattribute vendor_debug_logger_prop mtk_core_property_type; diff --git a/basic/non_plat/property_contexts b/basic/non_plat/property_contexts index 5b35950..a6bb7e7 100644 --- a/basic/non_plat/property_contexts +++ b/basic/non_plat/property_contexts @@ -383,6 +383,12 @@ vendor.dp.dumpreg.enable u:object_r:vendor_mtk_mdp_debug_log_prop:s0 vendor.dp.mmpath.enable u:object_r:vendor_mtk_mdp_debug_log_prop:s0 vendor.debug.logger. u:object_r:vendor_debug_logger_prop:s0 +# MDP properties +vendor.dp.met.enable u:object_r:vendor_mtk_mdp_prop:s0 +vendor.dp.dualpipe.4k.enable u:object_r:vendor_mtk_mdp_prop:s0 +vendor.dp.dualpipe.cam.enable u:object_r:vendor_mtk_mdp_prop:s0 +persist.vendor.dp.met.check u:object_r:vendor_mtk_mdp_prop:s0 + # neuropilot flag ro.vendor.neuropilot.flag u:object_r:vendor_mtk_neuropilot_flag_prop:s0