From 28b9dec7323bd07c5e8d5ff20d2b75a524c4fbc5 Mon Sep 17 00:00:00 2001 From: Arian Date: Tue, 28 Jun 2022 00:54:20 +0200 Subject: [PATCH] sm6150-common: sepolicy: Label new telephony properties Change-Id: Iad765076ceba263e4933374178eec670ffc81959 --- sepolicy/vendor/property_contexts | 8 ++++++++ sepolicy/vendor/rild.te | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 sepolicy/vendor/rild.te diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 43f4026..062eb08 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -26,6 +26,14 @@ vendor.powerhal. u:object_r:vendor_power_prop:s0 # Sensors persist.sensor. u:object_r:persist_sensors_prop:s0 +# Telephony +ro.vendor.oem.imei u:object_r:vendor_deviceid_prop:s0 +ro.vendor.oem.meid u:object_r:vendor_deviceid_prop:s0 +ro.vendor.oem.psno u:object_r:vendor_sno_prop:s0 +ro.vendor.oem.sno u:object_r:vendor_sno_prop:s0 +persist.vendor.radio.imei u:object_r:vendor_deviceid_prop:s0 +persist.vendor.radio.meid u:object_r:vendor_deviceid_prop:s0 + # Xiaomi specific build properties ro.boot.hwc u:object_r:build_prop:s0 ro.boot.hwversion u:object_r:build_prop:s0 diff --git a/sepolicy/vendor/rild.te b/sepolicy/vendor/rild.te new file mode 100644 index 0000000..cbe40fb --- /dev/null +++ b/sepolicy/vendor/rild.te @@ -0,0 +1,5 @@ +vendor_internal_prop(vendor_deviceid_prop) +vendor_internal_prop(vendor_sno_prop) + +set_prop(rild, vendor_deviceid_prop) +set_prop(rild, vendor_sno_prop)