diff options
| author | Roshan Pius <rpius@google.com> | 2016-12-08 18:41:47 -0800 |
|---|---|---|
| committer | Shreps <shr3ps@gmail.com> | 2017-09-12 10:18:41 +0200 |
| commit | 91ab96ce345d4316062c147f4af4cbbfd38b5b25 (patch) | |
| tree | 0d2cb5473ec1dba80163bf779e4673b7909a047f | |
| parent | ffa1d8141a0f0a1f560928c1317c598a21399aed (diff) | |
init: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as "wifi" user and not need root
permissions to access this path for firmware reloads.
Bug: 33435250
Test: Compiles.
Change-Id: I84a38cea5e0f729147c3191c3485a3738d7838ef
| -rwxr-xr-x | rootdir/etc/init.qcom.rc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 51ccd80..ae505c0 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -175,6 +175,11 @@ on boot chown system graphics /sys/class/graphics/fb0/mode chown system graphics /sys/class/graphics/fb0/modes + + # Wifi firmware reload path + chown wifi wifi /sys/module/wlan/parameters/fwpath + + # Change ownership and permission for backlight chown system system /sys/class/backlight/lcd-backlight:0/brightness chmod 0664 /sys/class/backlight/lcd-backlight:0/brightness |
