diff options
author | Luca Stefani <luca020400@lineageos.org> | 2017-09-09 14:28:12 +0200 |
---|---|---|
committer | dd3boh <dade.garberi@gmail.com> | 2017-09-17 19:32:47 +0200 |
commit | a0b4f4cd286a66c74ea1621b7492486a0fd0a4e2 (patch) | |
tree | 83f9189706ce3ca36a4ccff28feb603aded38c7d | |
parent | 32702d3c707d088f8aa9543833c1bd2cb5606742 (diff) |
Set cnss-sh user to system
* /persist/wlan_bt/ff_flag owner is system and running the script as root
needs dac_override capability
-> Run the script as system
and change /sys/module/cnss_common/parameters/bdwlan_file owner accordly
-rwxr-xr-x | rootdir/etc/init.qcom.rc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 3ab9a8a..b421b81 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -351,6 +351,9 @@ on boot write /sys/bus/msm_subsys/devices/subsys4/restart_level "related" write /sys/bus/msm_subsys/devices/subsys5/restart_level "related" + # Allow access for WLAN firmware + chown system system /sys/module/cnss_common/parameters/bdwlan_file + # msm specific files that need to be created on /data on post-fs-data mkdir /tombstones/modem 0771 system system @@ -1047,6 +1050,16 @@ service wifi_fccutild /system/bin/wifi_fccutild service cnss-daemon /system/bin/cnss-daemon -n -l class late_start + user system + group system inet net_admin wifi + +service cnss-sh /system/bin/init.cnss.sh + class core + user system + oneshot + +on property:sys.shutdown.requested=* + stop cnss-daemon service loc_launcher /system/bin/loc_launcher # loc_launcher will start as root and set its uid to gps |