From 5800f2030873df6ac1999dc412c72e0cf49b5d65 Mon Sep 17 00:00:00 2001 From: LinkBoi00 Date: Sun, 19 Mar 2023 22:35:29 +0200 Subject: [PATCH] Revert "sepolicy: basic: non_plat: Allow mediacodec to read vendor_mtk_hdr_video_prop" We did not have necessary rules for vendor_init to set this but apparently this rule is completely unnecessary anyways. Labelling this under the vendor_default_prop domain is enough. This reverts commit 6f21f83c672af237827e0335cd566c1ce4810735. Change-Id: Ic053bfed210562c173d14f2399c155cba0e9a4f2 Signed-off-by: LinkBoi00 --- basic/non_plat/mediacodec.te | 1 - basic/non_plat/property.te | 2 -- basic/non_plat/property_contexts | 1 - 3 files changed, 4 deletions(-) diff --git a/basic/non_plat/mediacodec.te b/basic/non_plat/mediacodec.te index 3e42574..8bc8453 100644 --- a/basic/non_plat/mediacodec.te +++ b/basic/non_plat/mediacodec.te @@ -149,7 +149,6 @@ set_prop(mediacodec, vendor_mtk_video_prop) get_prop(mediacodec, vendor_mtk_crossmount_prop) get_prop(mediacodec, vendor_mtk_deinterlace_prop) get_prop(mediacodec, vendor_mtk_omx_core_prop) -get_prop(mediacodec, vendor_mtk_hdr_video_prop) hal_client_domain(mediacodec, hal_mtkcodecservice) diff --git a/basic/non_plat/property.te b/basic/non_plat/property.te index 4ef471a..09e42d1 100644 --- a/basic/non_plat/property.te +++ b/basic/non_plat/property.te @@ -128,7 +128,6 @@ vendor_restricted_prop(vendor_debug_logger_prop) vendor_restricted_prop(vendor_mtk_crossmount_prop) vendor_restricted_prop(vendor_mtk_deinterlace_prop) vendor_restricted_prop(vendor_mtk_omx_core_prop) -vendor_restricted_prop(vendor_mtk_hdr_video_prop) # Properties with can be read by all domains typeattribute vendor_mtk_aal_ro_prop mtk_core_property_type; @@ -211,4 +210,3 @@ typeattribute vendor_debug_logger_prop mtk_core_property_type; typeattribute vendor_mtk_crossmount_prop mtk_core_property_type; typeattribute vendor_mtk_deinterlace_prop mtk_core_property_type; typeattribute vendor_mtk_omx_core_prop mtk_core_property_type; -typeattribute vendor_mtk_hdr_video_prop mtk_core_property_type; diff --git a/basic/non_plat/property_contexts b/basic/non_plat/property_contexts index bfb8ee8..4db69c1 100644 --- a/basic/non_plat/property_contexts +++ b/basic/non_plat/property_contexts @@ -406,4 +406,3 @@ persist.vendor.xfrm_support u:object_r:vendor_mtk_xfrm_support_prop:s0 mtk.vendor.omx.core.log u:object_r:vendor_mtk_omx_core_prop:s0 ro.mtk_crossmount_support u:object_r:vendor_mtk_crossmount_prop:s0 ro.mtk_deinterlace_support u:object_r:vendor_mtk_deinterlace_prop:s0 -ro.vendor.mtk_hdr_video_support u:object_r:vendor_mtk_hdr_video_prop:s0