diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2010-06-23 10:18:18 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-06-23 10:18:18 -0700 |
commit | fc94e89a7f7aadf101ac1144073be964d9bfcf6b (patch) | |
tree | 6d65eb3af3c12f4f073fd715260fbdceba6f988f /include/binder | |
parent | f3a8f74f7b8a0fb3672534d50b1fd942ab0742a2 (diff) | |
parent | efcf68aa1fd7fcfd52cf3d2837ed8db8e797194b (diff) | |
download | frameworks_base-fc94e89a7f7aadf101ac1144073be964d9bfcf6b.zip frameworks_base-fc94e89a7f7aadf101ac1144073be964d9bfcf6b.tar.gz frameworks_base-fc94e89a7f7aadf101ac1144073be964d9bfcf6b.tar.bz2 |
am efcf68aa: am ef8f96a7: Merge "Start of work on passing around StrictMode policy over Binder calls." into gingerbread
Merge commit 'efcf68aa1fd7fcfd52cf3d2837ed8db8e797194b'
* commit 'efcf68aa1fd7fcfd52cf3d2837ed8db8e797194b':
Start of work on passing around StrictMode policy over Binder calls.
Diffstat (limited to 'include/binder')
-rw-r--r-- | include/binder/IPCThreadState.h | 6 | ||||
-rw-r--r-- | include/binder/Parcel.h | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/binder/IPCThreadState.h b/include/binder/IPCThreadState.h index 3ab985d..04e24d2 100644 --- a/include/binder/IPCThreadState.h +++ b/include/binder/IPCThreadState.h @@ -40,6 +40,9 @@ public: int getCallingPid(); int getCallingUid(); + + void setStrictModePolicy(int32_t policy); + int32_t getStrictModePolicy() const; int64_t clearCallingIdentity(); void restoreCallingIdentity(int64_t token); @@ -109,8 +112,9 @@ private: status_t mLastError; pid_t mCallingPid; uid_t mCallingUid; + int32_t mStrictModePolicy; }; - + }; // namespace android // --------------------------------------------------------------------------- diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h index 66c34b2..2cc4db9 100644 --- a/include/binder/Parcel.h +++ b/include/binder/Parcel.h @@ -56,9 +56,12 @@ public: bool hasFileDescriptors() const; + // Writes the RPC header. status_t writeInterfaceToken(const String16& interface); + // Parses the RPC header, returning true if the interface name + // in the header matches the expected interface from the caller. bool enforceInterface(const String16& interface) const; - bool checkInterface(IBinder*) const; + bool checkInterface(IBinder*) const; void freeData(); |