diff options
author | Olivier Gaillard <gaillard@google.com> | 2018-11-19 17:08:17 +0000 |
---|---|---|
committer | Olivier Gaillard <gaillard@google.com> | 2018-12-05 23:12:13 +0000 |
commit | c17d280bab0913459b66f2198404133eaee905af (patch) | |
tree | fb164ffda12047364dbc49eba00dd56681a92c8e /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 9da2ff0fdc6af2153c12701ae8344f10f9a26413 (diff) |
Use the calling worksource uid for trusted apps.
- Set ThreadLocalWorkSource to the work source uid when app has the
UPDATE_DEVICE_STATS permission. We only enable that in system server for
now.
- By default, set ThreadLocalWorkSource to the calling uid since we
always trust this value.
- If an app sets a work source uid without having the right permission,
we just ignore it (we do not throw an exception)
A follow-up commit will update the code to use the worksource from the
beginning of the call. Currently we get the work source at the end
inside of BinderCallStats, however the value might have been changed
when executing onTransact.
Test: atest binderLibTest BinderWorkSourceTest BinderCallsStatsServiceTest
Change-Id: I351b8ac2b31feececc46c73f373f198b9b603c7e
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions