aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/init.qcom.rc
diff options
context:
space:
mode:
authorHarikrishnan Hariharan <hahariha@codeaurora.org>2018-02-20 22:06:37 +0530
committerDavide Garberi <dade.garberi@gmail.com>2019-01-26 13:56:26 +0100
commit67c356e1ae8a92b90a439f2805c5cddb0fec928d (patch)
tree80e3cd3b897dec924d755248364664523f6c6555 /rootdir/etc/init.qcom.rc
parent8405e8248a2cd2f5cfaa93ea80f1bc045792b2f7 (diff)
msm8996-common: Start loc_launcher as gps user
Start loc_launcher as gps user and set uid/gid of loc_launcher to gps and enable SETUID and SETGID caps for loc_launcher, so that we can start loc_launcher as gps user instead of root and still have capabilities for SETUID and SETGID. Also remove not required permissions groups for loc_launcher. Change-Id: Ie9f1506874b3c3148f9170c8d5db9afd1e70025c CRs-Fixed: 2192881 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'rootdir/etc/init.qcom.rc')
-rw-r--r--rootdir/etc/init.qcom.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index afff94c..1afa87c 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -454,9 +454,9 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
oneshot
service loc_launcher /vendor/bin/loc_launcher
- #loc_launcher will start as root and set its uid to gps
class late_start
- group gps inet diag wifi
+ user gps
+ group gps
writepid /dev/cpuset/system-background/tasks
service qcom-sh /vendor/bin/init.qcom.sh