mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 23:10:54 +00:00
SystemAP客户端新增权限校验
Signed-off-by: liusensen <liusen43@huawei.com>
This commit is contained in:
parent
497fdb7730
commit
74fad76295
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user