diff options
author | JP Abgrall <jpa@google.com> | 2013-01-10 17:04:42 -0800 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2013-01-10 17:04:42 -0800 |
commit | d198c429f50e1cad98e989d6212508adb45d7919 (patch) | |
tree | df20b2137607427c449c65df7a12400613f35bf8 /micro_bench/Android.mk | |
parent | ba120713397023ab9ddee07eb581f4d1083dbae8 (diff) | |
download | extras-d198c429f50e1cad98e989d6212508adb45d7919.tar.gz |
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
Diffstat (limited to 'micro_bench/Android.mk')
0 files changed, 0 insertions, 0 deletions