commit | 09f86191d6968ddc8c1f4a150bfee0f423b2f9d6 | [log] [tgz] |
---|---|---|
author | bkchoi <bkchoi@google.com> | Mon Dec 11 22:46:41 2023 +0000 |
committer | BK Choi <bkchoi@google.com> | Thu Dec 21 05:23:15 2023 +0000 |
tree | 76448ab5eeb06cb8c43736a40497965ca421699c | |
parent | 6557342b260cac753fa2c06b45ca535803220291 [diff] |
Check the calling user instead of the current user. In concurrent multi-user case, the calling user may be different from the current user, thus we cannot assume that it is always the current user to check if the calling user is an admin user. Instead, we use the calling user id from the binder, before the caller identity is cleared. Bug: 315382159 Test: atest android.bugreport.cts.BugreportManagerTest Change-Id: I003037d37b72c47dc4be7c85f634116f9bc4ca63