summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoj Basapathi <manojbm@codeaurora.org>2020-06-03 17:11:42 +0530
committeralk3pInjection <webmaster@raspii.tech>2023-06-13 00:20:25 +0800
commit6150514a25c6b566b880c2dd2af9567fb4819a65 (patch)
tree702351e77115ecbb8621fa59c8f9fa01dce77138
parent601c34694002723508a24d5818f06b5cce9f103f (diff)
sepolicy_vndr: legacy: Initial sepolicy rules for SLM
SLM enable dual link wifi data transfer by efficient utilization of available channel capacity. SLM enables UID specifc data transfer over two links. "persist.vendor.slm.enable" property used to enable and disable SLM feature. CRs-Fixed: 2607286 Change-Id: Ia562f698a3fa309eb45e98dea2a9fdc6a7623799
-rwxr-xr-xlegacy/vendor/common/cnd.te4
-rw-r--r--legacy/vendor/common/hwservice.te1
-rw-r--r--legacy/vendor/common/hwservice_contexts1
-rw-r--r--legacy/vendor/common/property.te3
-rw-r--r--legacy/vendor/common/property_contexts3
5 files changed, 12 insertions, 0 deletions
diff --git a/legacy/vendor/common/cnd.te b/legacy/vendor/common/cnd.te
index 08b3fc17..ab0abcce 100755
--- a/legacy/vendor/common/cnd.te
+++ b/legacy/vendor/common/cnd.te
@@ -120,6 +120,10 @@ binder_call(cnd, qtidataservices_app)
binder_call(cnd, ims)
binder_call(cnd, location)
+add_hwservice(cnd, vendor_hal_slmadapter_hwservice)
+
+get_prop(cnd, vendor_slm_prop)
+
##############################################################
#for using public interface vendor.qti.data.factory
#client should add their domain to cnd.te
diff --git a/legacy/vendor/common/hwservice.te b/legacy/vendor/common/hwservice.te
index 1f041111..7f5af597 100644
--- a/legacy/vendor/common/hwservice.te
+++ b/legacy/vendor/common/hwservice.te
@@ -69,3 +69,4 @@ type hal_debugutils_hwservice, hwservice_manager_type;
type vendor_hal_dspmanager_hwservice, hwservice_manager_type;
type vendor_hal_qccvndhal_hwservice, hwservice_manager_type, protected_hwservice;
type vendor_hal_limits_hwservice, hwservice_manager_type, protected_hwservice;
+type vendor_hal_slmadapter_hwservice, hwservice_manager_type, protected_hwservice;
diff --git a/legacy/vendor/common/hwservice_contexts b/legacy/vendor/common/hwservice_contexts
index 652f4ebd..eafd5d2e 100644
--- a/legacy/vendor/common/hwservice_contexts
+++ b/legacy/vendor/common/hwservice_contexts
@@ -113,3 +113,4 @@ vendor.qti.hardware.qseecom::IQSEECom u:object_r:hal_qsee
vendor.qti.hardware.perf::IPerfCallback u:object_r:hal_perfcallback_hwservice:s0
vendor.qti.hardware.dsp::IDspService u:object_r:vendor_hal_dspmanager_hwservice:s0
vendor.qti.hardware.qccvndhal::IQccvndhal u:object_r:vendor_hal_qccvndhal_hwservice:s0
+vendor.qti.hardware.slmadapter::ISlmAdapter u:object_r:vendor_hal_slmadapter_hwservice:s0
diff --git a/legacy/vendor/common/property.te b/legacy/vendor/common/property.te
index 49a50027..2e3c0067 100644
--- a/legacy/vendor/common/property.te
+++ b/legacy/vendor/common/property.te
@@ -183,3 +183,6 @@ vendor_restricted_prop(qvr_prop)
#capabilityconfigstore hal (CCHAL)
vendor_internal_prop(vendor_cap_configstore_dbg_prop)
+
+#slm property
+vendor_restricted_prop(vendor_slm_prop);
diff --git a/legacy/vendor/common/property_contexts b/legacy/vendor/common/property_contexts
index 06310bab..127dd4a9 100644
--- a/legacy/vendor/common/property_contexts
+++ b/legacy/vendor/common/property_contexts
@@ -222,3 +222,6 @@ persist.vendor.qteeconnector. u:object_r:vendor_qteeconnector_opti_prop:s0
#bt lazyhal property
ro.vendor.bt.enablelazyhal u:object_r:bluetooth_prop:s0 exact bool
+
+#SLM
+persist.vendor.slm. u:object_r:vendor_slm_prop:s0