summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-09-22 22:00:45 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-09-22 22:00:45 +0000
commitd4c28086bcbaffde7dd5a662ab9d5ab068097a84 (patch)
tree48d1ffd0659f16fe016f452fbf0601f1ff5b7517 /libs/binder/IPCThreadState.cpp
parentb3f953a7bfb7299954e95f64b3edecf5eb04be8a (diff)
parent9514b203cf79a988f45908d63ca6c9223fca4a12 (diff)
Merge "Reland "libbinder: ignore CallRestriction for magic 0 cmd""
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-rw-r--r--libs/binder/IPCThreadState.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index 16afecdbb0..05fcc2b878 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -448,6 +448,14 @@ int32_t IPCThreadState::getLastTransactionBinderFlags() const
return mLastTransactionBinderFlags;
}
+void IPCThreadState::setCallRestriction(ProcessState::CallRestriction restriction) {
+ mCallRestriction = restriction;
+}
+
+ProcessState::CallRestriction IPCThreadState::getCallRestriction() const {
+ return mCallRestriction;
+}
+
void IPCThreadState::restoreCallingIdentity(int64_t token)
{
mCallingUid = (int)(token>>32);