Add hdmi_config_prop for hdmi properties
To remove bad context names.
Bug: 154885206
Bug: 155844385
Test: m selinux_policy
Change-Id: I5712bf836e07b3b26a51c3433234b986843076ea
diff --git a/private/compat/27.0/27.0.ignore.cil b/private/compat/27.0/27.0.ignore.cil
index 1f43c71..67f939c 100644
--- a/private/compat/27.0/27.0.ignore.cil
+++ b/private/compat/27.0/27.0.ignore.cil
@@ -91,6 +91,7 @@
hal_usb_gadget_hwservice
hal_vehicle_hwservice
hal_wifi_hostapd_hwservice
+ hdmi_config_prop
heapprofd
heapprofd_exec
heapprofd_socket
diff --git a/private/compat/30.0/30.0.cil b/private/compat/30.0/30.0.cil
index fd320c0..6c4e27c 100644
--- a/private/compat/30.0/30.0.cil
+++ b/private/compat/30.0/30.0.cil
@@ -1352,6 +1352,7 @@
(typeattributeset exported3_default_prop_30_0
( exported3_default_prop
camera_config_prop
+ hdmi_config_prop
lmkd_config_prop
zram_config_prop))
(typeattributeset exported3_radio_prop_30_0 (exported3_radio_prop))
diff --git a/private/coredomain.te b/private/coredomain.te
index 2aa44c2..f768987 100644
--- a/private/coredomain.te
+++ b/private/coredomain.te
@@ -3,6 +3,7 @@
get_prop(coredomain, ffs_config_prop)
get_prop(coredomain, lmkd_config_prop)
get_prop(coredomain, camera_config_prop)
+get_prop(coredomain, hdmi_config_prop)
full_treble_only(`
neverallow {
diff --git a/private/property_contexts b/private/property_contexts
index f8e4fff..424209f 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -361,7 +361,10 @@
persist.sys.dalvik.vm.lib.2 u:object_r:exported2_system_prop:s0 exact string
persist.sys.media.avsync u:object_r:exported2_system_prop:s0 exact bool
-persist.sys.hdmi.keep_awake u:object_r:exported2_system_prop:s0 exact bool
+
+persist.sys.hdmi.keep_awake u:object_r:hdmi_config_prop:s0 exact bool
+ro.hdmi.device_type u:object_r:hdmi_config_prop:s0 exact string
+ro.hdmi.wake_on_hotplug u:object_r:hdmi_config_prop:s0 exact bool
pm.dexopt.ab-ota u:object_r:exported_pm_prop:s0 exact string
pm.dexopt.bg-dexopt u:object_r:exported_pm_prop:s0 exact string
@@ -420,9 +423,6 @@
ro.gfx.driver.0 u:object_r:exported3_default_prop:s0 exact string
ro.gfx.angle.supported u:object_r:exported3_default_prop:s0 exact bool
-ro.hdmi.device_type u:object_r:exported3_default_prop:s0 exact string
-ro.hdmi.wake_on_hotplug u:object_r:exported3_default_prop:s0 exact bool
-
ro.lmk.critical u:object_r:lmkd_config_prop:s0 exact int
ro.lmk.critical_upgrade u:object_r:lmkd_config_prop:s0 exact bool
ro.lmk.debug u:object_r:lmkd_config_prop:s0 exact bool