No longer need "original calling uid".
Change-Id: Ifc4a89dd088609a5a8553f6ac6553174e09e8222
This commit is contained in:
parent
9ca48916bc
commit
8210185fe3
@ -41,7 +41,6 @@ public:
|
|||||||
|
|
||||||
int getCallingPid();
|
int getCallingPid();
|
||||||
int getCallingUid();
|
int getCallingUid();
|
||||||
int getOrigCallingUid();
|
|
||||||
|
|
||||||
void setStrictModePolicy(int32_t policy);
|
void setStrictModePolicy(int32_t policy);
|
||||||
int32_t getStrictModePolicy() const;
|
int32_t getStrictModePolicy() const;
|
||||||
@ -117,7 +116,6 @@ private:
|
|||||||
status_t mLastError;
|
status_t mLastError;
|
||||||
pid_t mCallingPid;
|
pid_t mCallingPid;
|
||||||
uid_t mCallingUid;
|
uid_t mCallingUid;
|
||||||
uid_t mOrigCallingUid;
|
|
||||||
int32_t mStrictModePolicy;
|
int32_t mStrictModePolicy;
|
||||||
int32_t mLastTransactionBinderFlags;
|
int32_t mLastTransactionBinderFlags;
|
||||||
};
|
};
|
||||||
|
@ -371,11 +371,6 @@ int IPCThreadState::getCallingUid()
|
|||||||
return mCallingUid;
|
return mCallingUid;
|
||||||
}
|
}
|
||||||
|
|
||||||
int IPCThreadState::getOrigCallingUid()
|
|
||||||
{
|
|
||||||
return mOrigCallingUid;
|
|
||||||
}
|
|
||||||
|
|
||||||
int64_t IPCThreadState::clearCallingIdentity()
|
int64_t IPCThreadState::clearCallingIdentity()
|
||||||
{
|
{
|
||||||
int64_t token = ((int64_t)mCallingUid<<32) | mCallingPid;
|
int64_t token = ((int64_t)mCallingUid<<32) | mCallingPid;
|
||||||
@ -646,7 +641,6 @@ IPCThreadState::IPCThreadState()
|
|||||||
{
|
{
|
||||||
pthread_setspecific(gTLS, this);
|
pthread_setspecific(gTLS, this);
|
||||||
clearCaller();
|
clearCaller();
|
||||||
mOrigCallingUid = mCallingUid;
|
|
||||||
mIn.setDataCapacity(256);
|
mIn.setDataCapacity(256);
|
||||||
mOut.setDataCapacity(256);
|
mOut.setDataCapacity(256);
|
||||||
}
|
}
|
||||||
@ -998,7 +992,6 @@ status_t IPCThreadState::executeCommand(int32_t cmd)
|
|||||||
|
|
||||||
mCallingPid = tr.sender_pid;
|
mCallingPid = tr.sender_pid;
|
||||||
mCallingUid = tr.sender_euid;
|
mCallingUid = tr.sender_euid;
|
||||||
mOrigCallingUid = tr.sender_euid;
|
|
||||||
|
|
||||||
int curPrio = getpriority(PRIO_PROCESS, mMyThreadId);
|
int curPrio = getpriority(PRIO_PROCESS, mMyThreadId);
|
||||||
if (gDisableBackgroundScheduling) {
|
if (gDisableBackgroundScheduling) {
|
||||||
@ -1056,7 +1049,6 @@ status_t IPCThreadState::executeCommand(int32_t cmd)
|
|||||||
|
|
||||||
mCallingPid = origPid;
|
mCallingPid = origPid;
|
||||||
mCallingUid = origUid;
|
mCallingUid = origUid;
|
||||||
mOrigCallingUid = origUid;
|
|
||||||
|
|
||||||
IF_LOG_TRANSACTIONS() {
|
IF_LOG_TRANSACTIONS() {
|
||||||
TextOutput::Bundle _b(alog);
|
TextOutput::Bundle _b(alog);
|
||||||
|
Loading…
Reference in New Issue
Block a user