common: Add policy for hwc3
authorTim Zimmermann <tim@linux4.de>
Thu, 17 Nov 2022 19:43:52 +0000 (20:43 +0100)
committerFrancescodario Cuzzocrea <bosconovic@gmail.com>
Tue, 21 Mar 2023 21:07:04 +0000 (22:07 +0100)
Change-Id: I181f5f86f8adc98a5b03000204e488f67b2177ab

common/vendor/file_contexts
common/vendor/hal_graphics_composer_default.te [new file with mode: 0644]
common/vendor/property.te
common/vendor/property_contexts

index e60be764a6f64e5b679ab9159ce995b96e515d51..95fd33c298cc37d71675b58232c5428ed206d311 100644 (file)
 
 /(vendor|system/vendor)/bin/hw/android.hardware.sensors(@[0-9].[0-9])?-service.samsung-multihal   u:object_r:hal_sensors_default_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@[0-9].[0-9]-service\.samsung    u:object_r:hal_fingerprint_default_exec:s0
+/(vendor|system/vendor)/bin/hw/android\.hardware\.composer\.hwc3-service\.slsi                    u:object_r:hal_graphics_composer_default_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service\.clearkey              u:object_r:hal_drm_clearkey_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.drm@[0-9]\.[0-9]-service\.widevine              u:object_r:hal_drm_widevine_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.health-service\.samsung                         u:object_r:hal_health_default_exec:s0
diff --git a/common/vendor/hal_graphics_composer_default.te b/common/vendor/hal_graphics_composer_default.te
new file mode 100644 (file)
index 0000000..060c4d5
--- /dev/null
@@ -0,0 +1 @@
+set_prop(hal_graphics_composer_default, vendor_hwc_prop)
index 2644228f7a4e39408fcd1e5a967376c1c9d46d6b..4b2edae21d86bc84576193c93377d8e0628120ff 100644 (file)
@@ -1,6 +1,7 @@
 # property.te
 
 vendor_internal_prop(vendor_cbd_prop)
+vendor_restricted_prop(vendor_hwc_prop)
 vendor_internal_prop(vendor_radio_prop)
 vendor_internal_prop(vendor_fastcharge_prop)
 vendor_internal_prop(vendor_wifi_prop)
index bf6a91f29fe97dcd370db70986a6fdcaa9a52788..13a59df9e990b78417ad76b22094d0cd6f183070 100644 (file)
@@ -2,6 +2,10 @@
 vendor.cbd.                    u:object_r:vendor_cbd_prop:s0
 persist.vendor.cbd.            u:object_r:vendor_radio_prop:s0
 
+### hwc
+persist.vendor.display.        u:object_r:vendor_hwc_prop:s0
+vendor.display.                u:object_r:vendor_hwc_prop:s0
+
 ### radio
 ro.vendor.multisim.            u:object_r:vendor_radio_prop:s0
 ro.vendor.radio.               u:object_r:vendor_radio_prop:s0