mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-23 07:50:24 +00:00
操作appinfo和authinfo时同时加锁
Signed-off-by: dengliang <15934868816@139.com>
This commit is contained in:
parent
dec762f6c4
commit
4b5a0b85f8
@ -780,7 +780,7 @@ int DBinderDatabusInvoker::CheckAndSetCallerInfo(int32_t socketId, uint64_t stub
|
||||
}
|
||||
uint32_t callerTokenId = session->GetTokenId();
|
||||
AppAuthInfo appAuthInfo = { pid, uid, callerTokenId, socketId, stubIndex, nullptr, deviceId };
|
||||
if (!current->QueryAppInfoToStubIndex(appAuthInfo)) {
|
||||
if (current->QueryAppInfoToStubIndex(appAuthInfo) == false) {
|
||||
ZLOGE(LOG_LABEL, "stubIndex:%{public}" PRIu64 " is NOT belong to caller, pid:%{public}d uid:%{public}d"
|
||||
" deviceId:%{public}s socketId:%{public}d callerTokenId:%{public}u", stubIndex, pid, uid,
|
||||
IPCProcessSkeleton::ConvertToSecureString(deviceId).c_str(), socketId, callerTokenId);
|
||||
|
Loading…
Reference in New Issue
Block a user