diff options
| author | 2020-09-22 22:39:52 +0000 | |
|---|---|---|
| committer | 2020-09-22 22:39:52 +0000 | |
| commit | e88af87183ac5734fa2064f474c9969be38d9a44 (patch) | |
| tree | 48d1ffd0659f16fe016f452fbf0601f1ff5b7517 /libs/binder/IPCThreadState.cpp | |
| parent | e8996bd9d0ab217035994b179f930ae7680c1f12 (diff) | |
| parent | d4c28086bcbaffde7dd5a662ab9d5ab068097a84 (diff) | |
Merge "Reland "libbinder: ignore CallRestriction for magic 0 cmd"" am: d4c28086bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1433351
Change-Id: I1e907c2fed596506e5250be65d9bbe77a3e294ee
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 8 |
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); |