summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkita Bajaj <bankita@codeaurora.org>2019-06-27 15:06:46 +0530
committeralk3pInjection <webmaster@raspii.tech>2022-01-20 10:28:00 +0800
commit2fe187c281839943adf6ca48bac080af5e5b3fb6 (patch)
treedc4577bb8b3d63150ed912f8f8fa8666193fca7a
parent12997102c8d04ed4f36a262e12dfd8d2a976ecab (diff)
legacy: Add write permission to proc file system
Provide Wi-Fi HAL read and write access to proc file system. Wi-Fi Hal needs access to proc file system in order to configure kernel tcp parameters for achieving higher peak throughputs. CRs-Fixed: 2491783 Change-Id: I36613f74aaa4adfc33e68442befcdb78af5edd5c
-rw-r--r--legacy/vendor/common/hal_wifi.te3
1 files changed, 3 insertions, 0 deletions
diff --git a/legacy/vendor/common/hal_wifi.te b/legacy/vendor/common/hal_wifi.te
index 378dc401..73e83896 100644
--- a/legacy/vendor/common/hal_wifi.te
+++ b/legacy/vendor/common/hal_wifi.te
@@ -49,6 +49,9 @@ get_prop(hal_wifi_default, vendor_softap_prop)
# Write wlan driver/fw version into property
set_prop(hal_wifi_default, vendor_wifi_version)
+# allow hal_wifi to write into /proc/sys/net/ipv4
+allow hal_wifi proc_net:file write;
+
# allow hal_wifi to write into /data/vendor/tombstones/wifi
userdebug_or_eng(`
allow hal_wifi_server vendor_tombstone_data_file:dir rw_dir_perms;