commit | da31778f3b422d9583f334273eb8d9f6aabd5d34 | [log] [tgz] |
---|---|---|
author | Oleksiy Vyalov <ovyalov@google.com> | Wed Jun 03 16:56:29 2015 -0700 |
committer | Oleksiy Vyalov <ovyalov@google.com> | Sun Jun 07 19:12:50 2015 -0700 |
tree | 8cd7695c95b7beff07470ec27815f5a1bfd8cdbb | |
parent | 9187fb5985cdf81e0e2559af8a66f0a45a24eeec [diff] |
Extend run-as with optional --user argument. 1. Calculate AID for spawned process as (100000 * $user) + uid_from_packages.list 2. Use /data/user/$user/$packageDir as a root of a new process if $user != 0. Change-Id: I761dfb481114bd51e5a950307fcaf403e96eef10