commit | a08d313bb87279d2a203cded92669638e3458f5f | [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 | 4d7f052afbaf79c7324a2e9dd51168990b062647 [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)