summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Tranchetti <stranche@codeaurora.org>2020-03-02 18:29:20 -0700
committeralk3pInjection <webmaster@raspii.tech>2023-06-13 00:20:25 +0800
commit84d4678bcc425fcf8ea8f304e696aa15b2e99d77 (patch)
treeee65599d2e4cc76f79818be3ec2e5e4b3686a00b
parentebe00089a672f87e98b095e62451a16dc1bc628d (diff)
sepolicy_vndr: legacy: allow netmgrd to access qmipriod properties
Allows netmgr to control starting/stopping the qmipriod daemon via setting the relevant android properties. Change-Id: I35d9af93ff565bddc4813eef8ad36db896d4a400
-rw-r--r--legacy/vendor/common/netmgrd.te1
-rw-r--r--legacy/vendor/common/property.te2
-rw-r--r--legacy/vendor/common/property_contexts1
3 files changed, 4 insertions, 0 deletions
diff --git a/legacy/vendor/common/netmgrd.te b/legacy/vendor/common/netmgrd.te
index ad967e5b..a6b80274 100644
--- a/legacy/vendor/common/netmgrd.te
+++ b/legacy/vendor/common/netmgrd.te
@@ -104,6 +104,7 @@ allow netmgrd system_net_netd_hwservice:hwservice_manager find;
# Allow netmgrd to use shsusrd properties
set_prop(netmgrd, vendor_data_shsusr_prop)
+set_prop(netmgrd, vendor_data_qmipriod_prop)
allow netmgrd sysfs_net:dir r_dir_perms;
allow netmgrd sysfs_net:file rw_file_perms;
diff --git a/legacy/vendor/common/property.te b/legacy/vendor/common/property.te
index a1a47863..ec120e70 100644
--- a/legacy/vendor/common/property.te
+++ b/legacy/vendor/common/property.te
@@ -150,6 +150,8 @@ vendor_internal_prop(vendor_audio_debug_prop)
# shsusrd props
vendor_restricted_prop(vendor_data_shsusr_prop);
+vendor_restricted_prop(vendor_data_qmipriod_prop);
+
#ss-restart
vendor_internal_prop(vendor_ssr_prop)
diff --git a/legacy/vendor/common/property_contexts b/legacy/vendor/common/property_contexts
index ccc74dd7..3f65f0a9 100644
--- a/legacy/vendor/common/property_contexts
+++ b/legacy/vendor/common/property_contexts
@@ -123,6 +123,7 @@ vendor.debug.rs. u:object_r:public_vendor_default_prop:s0
# shsusrd loading
persist.vendor.data.shsusr_load u:object_r:vendor_data_shsusr_prop:s0
+persist.vendor.data.qmipriod_load u:object_r:vendor_data_qmipriod_prop:s0
# cgroup follow
ro.vendor.qti.cgroup_follow.enable u:object_r:vendor_cgroup_follow_prop:s0