From 67c356e1ae8a92b90a439f2805c5cddb0fec928d Mon Sep 17 00:00:00 2001 From: Harikrishnan Hariharan Date: Tue, 20 Feb 2018 22:06:37 +0530 Subject: 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 --- rootdir/etc/init.qcom.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rootdir') 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 -- cgit v1.2.3