sanders: 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:
committed by
therootlord
parent
ab63f76163
commit
3437531910
@@ -64,6 +64,12 @@ user: AID_GPS
|
|||||||
group: AID_GPS
|
group: AID_GPS
|
||||||
caps: NET_BIND_SERVICE
|
caps: NET_BIND_SERVICE
|
||||||
|
|
||||||
|
[vendor/bin/loc_launcher]
|
||||||
|
mode: 0755
|
||||||
|
user: AID_GPS
|
||||||
|
group: AID_GPS
|
||||||
|
caps: SETUID SETGID
|
||||||
|
|
||||||
[vendor/bin/xtwifi-client]
|
[vendor/bin/xtwifi-client]
|
||||||
mode: 0755
|
mode: 0755
|
||||||
user: AID_GPS
|
user: AID_GPS
|
||||||
|
|||||||
@@ -807,9 +807,9 @@ service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
|
|||||||
oneshot
|
oneshot
|
||||||
|
|
||||||
service vendor.loc_launcher /vendor/bin/loc_launcher
|
service vendor.loc_launcher /vendor/bin/loc_launcher
|
||||||
#loc_launcher will start as root and set its uid to gps
|
|
||||||
class late_start
|
class late_start
|
||||||
group gps inet oem_2950 wifi
|
user gps
|
||||||
|
group gps
|
||||||
writepid /dev/cpuset/system-background/tasks
|
writepid /dev/cpuset/system-background/tasks
|
||||||
|
|
||||||
service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqbalance.conf
|
service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqbalance.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user