History log of /system/extras/su/su.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d198c429f50e1cad98e989d6212508adb45d7919 11-Jan-2013 JP Abgrall <jpa@google.com> su: support fine grained setting of gid and groups

To allow some tests to quickly check if some group membership handling
are correctly done, the tests need to run as a proc belonging to multiple
groups.
su would normally only allow setting uid=gid=something.

This changes adds setting the gid separately from the uid and setting the
groups:
su [uid[,gid[,group1]...]] [cmd]]
E.g.
su
su shell ls /data
su 1000,shell,net_bw_acct,net_bw_stats id
will return
uid=1000(system) gid=2000(shell) groups=3006(net_bw_stats),3007(net_bw_acct)

Change-Id: I713454bf14c3bc3ece93aec3729bda102542d1b1
/system/extras/su/su.c
17928c8ab5e696517cd03969364f7288ab5b911c 02-Apr-2012 Nick Kralevich <nnk@google.com> su: do uid check earlier.

Change-Id: Ied4894019d2b0021e7f727569ff85650d209e5da
/system/extras/su/su.c
26aaac4bf942c4f51de0f10ea85edf9751c234c8 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
/system/extras/su/su.c
e16cb84e2324f05334d18dcf5956f20f44262b62 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/extras/su/su.c
19ddb4b1680760e2d6863c3003976882ebd9d0fa 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/extras/su/su.c
ab8beedeb70c6941e0ff68014d8db64cee4ef15d 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/system/extras/su/su.c
7341494707810f709855ea85ce03a8ec3ac8dbaf 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/extras/su/su.c