提交 23864e55 编写于 作者: L lutao

fix codecheck

Signed-off-by: Nlutao <lutao31@huawei.com>
上级 f71f0ae4
...@@ -168,7 +168,8 @@ int IPCObjectStub::SendRequest(uint32_t code, MessageParcel &data, MessageParcel ...@@ -168,7 +168,8 @@ int IPCObjectStub::SendRequest(uint32_t code, MessageParcel &data, MessageParcel
pid_t uid = IPCSkeleton::GetCallingUid(); pid_t uid = IPCSkeleton::GetCallingUid();
uint32_t calllingTokenID = IPCSkeleton::GetFirstTokenID(); uint32_t calllingTokenID = IPCSkeleton::GetFirstTokenID();
calllingTokenID = calllingTokenID == 0 ? IPCSkeleton::GetCallingTokenID() : calllingTokenID; calllingTokenID = calllingTokenID == 0 ? IPCSkeleton::GetCallingTokenID() : calllingTokenID;
if (!IPCSkeleton::IsLocalCalling() || (uid != 0 && uid != SHELL_UID && !HasDumpPermission(calllingTokenID))) { if (!IPCSkeleton::IsLocalCalling() ||
(uid != 0 && uid != SHELL_UID && !HasDumpPermission(calllingTokenID))) {
ZLOGE(LABEL, "do not allow dump"); ZLOGE(LABEL, "do not allow dump");
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册