commit | 44d2920fb8b3783c0b1e5ac4c6dc43b2a8632e23 | [log] [tgz] |
---|---|---|
author | Oleksiy Vyalov <ovyalov@google.com> | Wed Jun 03 16:56:29 2015 -0700 |
committer | Oleksiy Vyalov <ovyalov@google.com> | Wed Jun 10 12:09:10 2015 -0700 |
tree | 8449156fdb4cb140fc954b7bf35b3bbd7c9e94e6 | |
parent | d5b6e172a83b561ac2905680144697be8bef5105 [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 (cherry picked from commit da31778f3b422d9583f334273eb8d9f6aabd5d34)