diff options
| author | 2010-06-21 15:31:01 -0700 | |
|---|---|---|
| committer | 2010-06-21 15:31:01 -0700 | |
| commit | ef8f96a717554a85aa63a60f8c61be2afbd12a5c (patch) | |
| tree | 0a6550aabca59a3e91a5a3d88bdd5351ce14d043 /libs/binder/IPCThreadState.cpp | |
| parent | d91ac98a8ead216b12af6df61d90229b74c7f0f6 (diff) | |
| parent | 27b3a7a75960d026655f3acd1de8a672e80a5776 (diff) | |
Merge "Start of work on passing around StrictMode policy over Binder calls." into gingerbread
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 001650318611..28706badad49 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -367,6 +367,16 @@ int64_t IPCThreadState::clearCallingIdentity() return token; } +void IPCThreadState::setStrictModePolicy(int32_t policy) +{ + mStrictModePolicy = policy; +} + + +int32_t IPCThreadState::getStrictModePolicy() const { + return mStrictModePolicy; +} + void IPCThreadState::restoreCallingIdentity(int64_t token) { mCallingUid = (int)(token>>32); @@ -588,7 +598,8 @@ status_t IPCThreadState::clearDeathNotification(int32_t handle, BpBinder* proxy) } IPCThreadState::IPCThreadState() - : mProcess(ProcessState::self()), mMyThreadId(androidGetTid()) + : mProcess(ProcessState::self()), mMyThreadId(androidGetTid()), + mStrictModePolicy(0) { pthread_setspecific(gTLS, this); clearCaller(); |