sdm660-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
This commit is contained in:
Harikrishnan Hariharan 2018-02-20 22:06:37 +05:30 committed by Max Weffers
parent 9d39230981
commit 2497916c99
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE

View file

@ -641,9 +641,9 @@ on property:sys.powerctl=*
stop vendor.cnss-daemon
service vendor.loc_launcher /system/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
on property:crypto.driver.load=1