diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2010-06-21 15:31:01 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-06-21 15:31:01 -0700 |
commit | 03bd2484c8d5dfb12759aa6ab4206966c4d01c71 (patch) | |
tree | 79e48685cd2fa961069eddd59f41c7db2c24f43d /include | |
parent | f955be995d9aa5eb2c4b86246b2f85797e21e003 (diff) | |
parent | 702ea9d42f52fc145090c0f0bfbe64993e4b8b33 (diff) | |
download | frameworks_native-03bd2484c8d5dfb12759aa6ab4206966c4d01c71.zip frameworks_native-03bd2484c8d5dfb12759aa6ab4206966c4d01c71.tar.gz frameworks_native-03bd2484c8d5dfb12759aa6ab4206966c4d01c71.tar.bz2 |
Merge "Start of work on passing around StrictMode policy over Binder calls." into gingerbread
Diffstat (limited to 'include')
-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(); |