SystemAP客户端新增权限校验

Signed-off-by: liusensen <liusen43@huawei.com>
This commit is contained in:
liusensen 2024-07-22 20:41:25 +08:00
parent 497fdb7730
commit 74fad76295
4 changed files with 5 additions and 4 deletions

View File

@ -70,7 +70,7 @@ bool Permission::IsSystemCalling()
bool Permission::IsLocalSystemCalling() bool Permission::IsLocalSystemCalling()
{ {
if (IsLocalSystemServiceCalling()) { if (IsSystemServiceCalling(false, true)) {
return true; return true;
} }
auto tokenId = IPCSkeleton::GetSelfTokenID(); auto tokenId = IPCSkeleton::GetSelfTokenID();
@ -102,6 +102,7 @@ bool Permission::IsLocalStartByHdcd()
} }
return false; return false;
} }
bool Permission::IsStartByHdcd() bool Permission::IsStartByHdcd()
{ {
OHOS::Security::AccessToken::NativeTokenInfo info; OHOS::Security::AccessToken::NativeTokenInfo info;