summaryrefslogtreecommitdiffstats
path: root/include/binder
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-06-23 10:18:18 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-06-23 10:18:18 -0700
commitf9e01ea4818328ecb2f573bcaee3116b49414035 (patch)
treef72236e82abca38e3a0e72775ac8cdc75939d12d /include/binder
parent60af8760d64e94298e2f5c60bb4f2f91325f748d (diff)
parent8e10e50f29e7137ad5318aadddb40cb3779b36c7 (diff)
downloadframeworks_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.h6
-rw-r--r--include/binder/Parcel.h5
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();