From: Tim Zimmermann Date: Thu, 17 Nov 2022 19:43:52 +0000 (+0100) Subject: common: Add policy for hwc3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d76e0586dc8562c879cc6a2ded48408c75c75f44;p=GitHub%2FLineageOS%2Fandroid_device_samsung_slsi_sepolicy.git common: Add policy for hwc3 Change-Id: I181f5f86f8adc98a5b03000204e488f67b2177ab --- diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts index e60be76..95fd33c 100644 --- a/common/vendor/file_contexts +++ b/common/vendor/file_contexts @@ -131,6 +131,7 @@ /(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 index 0000000..060c4d5 --- /dev/null +++ b/common/vendor/hal_graphics_composer_default.te @@ -0,0 +1 @@ +set_prop(hal_graphics_composer_default, vendor_hwc_prop) diff --git a/common/vendor/property.te b/common/vendor/property.te index 2644228..4b2edae 100644 --- a/common/vendor/property.te +++ b/common/vendor/property.te @@ -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) diff --git a/common/vendor/property_contexts b/common/vendor/property_contexts index bf6a91f..13a59df 100644 --- a/common/vendor/property_contexts +++ b/common/vendor/property_contexts @@ -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