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 | f9e01ea4818328ecb2f573bcaee3116b49414035 (patch) | |
tree | f72236e82abca38e3a0e72775ac8cdc75939d12d /include/binder | |
parent | 60af8760d64e94298e2f5c60bb4f2f91325f748d (diff) | |
parent | 8e10e50f29e7137ad5318aadddb40cb3779b36c7 (diff) | |
download | frameworks_native-f9e01ea4818328ecb2f573bcaee3116b49414035.zip frameworks_native-f9e01ea4818328ecb2f573bcaee3116b49414035.tar.gz frameworks_native-f9e01ea4818328ecb2f573bcaee3116b49414035.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(); |