summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2022-07-06 21:48:46 +0000
committer Steven Moreland <smoreland@google.com> 2022-07-06 21:48:46 +0000
commit5d7100a43bc030a42b9084dfded7f17d8e2f8286 (patch)
tree1c8ac06709152bd68f2083a0b7e8c3ececf4f21d /libs/androidfw/StringPool.cpp
parentc6350a111b1b468c5c59c0ab74d05b42dfa2fad2 (diff)
Binder: clearCallingIdentity is kernel binder
This method clears the calling identity of a kernel binder call. However, there is now a generic API to disallow the use of kernel binder calling identities. This is used by RPC binder calls in order to ensure that code doesn't accidentally assume the default (<pid>, <uid>) calling identity means that the call originated from another process. In the C++ layer, this API is attached to IPCThreadState. In the future, we could consider expanding the scope of this API to code and restore many types of calling IDs, but the current return type may not have enough space, and I want to push people away from thread locals (globals) for now. Bug: 237245600 Test: N/A Change-Id: I6e293814769cbd3c41e72afd95385af31ceb099f
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions