mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-23 07:39:51 +00:00
!1047 不允许应用在后台发起认证,补充应用是否为系统应用检查
Merge pull request !1047 from liuziwei/master
This commit is contained in:
commit
34fcc7dc9d
@ -820,7 +820,8 @@ int32_t UserAuthService::CheckAuthPermissionAndParam(const std::string &callerNa
|
||||
IAM_LOGE("CheckPermission failed");
|
||||
return CHECK_PERMISSION_FAILED;
|
||||
}
|
||||
if (callerType == Security::AccessToken::TOKEN_HAP && (!IpcCommon::CheckForegroundApplication(callerName))) {
|
||||
if (callerType == Security::AccessToken::TOKEN_HAP && (!IpcCommon::CheckPermission(*this, IS_SYSTEM_APP)) &&
|
||||
(!IpcCommon::CheckForegroundApplication(callerName))) {
|
||||
IAM_LOGE("failed to check foreground application");
|
||||
return CHECK_PERMISSION_FAILED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user