From 6774b84b9b19fdbe033f3ae5dca4719e43d3d4b5 Mon Sep 17 00:00:00 2001 From: chrisl7 Date: Sun, 13 Aug 2023 19:03:38 -0400 Subject: [PATCH] common: sepolicy: bengal: Add missing label partitions to 5.15 variant [1] - I don't know why qcom left this missing, but it breaks flash build on sideload, as well as a possible OTA update. Change-Id: I2f209f73b6199a93fe5e4745ac4410f6090daba0 Signed-off-by: chrisl7 --- sepolicy/qva/vendor/bengal/file_contexts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sepolicy/qva/vendor/bengal/file_contexts b/sepolicy/qva/vendor/bengal/file_contexts index 00794182..62b9cdf9 100644 --- a/sepolicy/qva/vendor/bengal/file_contexts +++ b/sepolicy/qva/vendor/bengal/file_contexts @@ -24,3 +24,18 @@ #Graphics /sys/devices/platform/soc/5900000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpubusy u:object_r:vendor_sysfs_kgsl_gpubusy:s0 + +# UFS Devices +/dev/block/platform/soc/4804000.ufshc/by-name/vendor u:object_r:system_block_device:s0 +/dev/block/platform/soc/4804000.ufshc/by-name/product u:object_r:system_block_device:s0 +/dev/block/platform/soc/4804000.ufshc/by-name/odm u:object_r:system_block_device:s0 +/dev/block/platform/soc/4804000.ufshc/by-name/product_[ab] u:object_r:system_block_device:s0 +/dev/block/platform/soc/4804000.ufshc/by-name/odm_[ab] u:object_r:system_block_device:s0 +/dev/block/platform/soc/4804000.ufshc/by-name/vendor_dlkm_[ab] u:object_r:vendor_custom_ab_block_device:s0 + +#for eMMC +/dev/block/platform/soc/4744000.sdhci/by-name/vendor u:object_r:system_block_device:s0 +/dev/block/platform/soc/4744000.sdhci/by-name/product u:object_r:system_block_device:s0 +/dev/block/platform/soc/4744000.sdhci/by-name/odm u:object_r:system_block_device:s0 +/dev/block/platform/soc/4744000.sdhci/by-name/product_[ab] u:object_r:system_block_device:s0 +/dev/block/platform/soc/4744000.sdhci/by-name/odm_[ab] u:object_r:system_block_device:s0