/base/time/time_service/services/ |
D | time_permission.cpp | 33 auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callerToken); in CheckCallingPermission() local 35 if (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_NATIVE || in CheckCallingPermission() 36 tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_SHELL) { in CheckCallingPermission() 38 } else if (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_HAP) { in CheckCallingPermission() 42 callerToken, tokenType); in CheckCallingPermission() 56 auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callerToken); in CheckProxyCallingPermission() local 57 return (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_NATIVE || in CheckProxyCallingPermission() 58 tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_SHELL); in CheckProxyCallingPermission() 64 auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callerToken); in CheckSystemUidCallingPermission() local 65 if (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_NATIVE) { in CheckSystemUidCallingPermission() [all …]
|
/base/notification/common_event_service/services/src/ |
D | access_token_helper.cpp | 30 ATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in VerifyNativeToken() local 31 return (tokenType == ATokenTypeEnum::TOKEN_NATIVE); in VerifyNativeToken() 45 ATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in RecordSensitivePermissionUsage() local 46 if (tokenType != ATokenTypeEnum::TOKEN_HAP) { in RecordSensitivePermissionUsage() 79 ATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in VerifyShellToken() local 80 return (tokenType == ATokenTypeEnum::TOKEN_SHELL); in VerifyShellToken()
|
/base/telephony/core_service/utils/common/src/ |
D | telephony_permission.cpp | 72 auto tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in CheckPermission() local 78 if (tokenType == ATokenTypeEnum::TOKEN_HAP) { in CheckPermission() 93 permissionName.c_str(), callerToken, tokenType); in CheckPermission() 102 auto tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in CheckCallerIsSystemApp() local 103 if (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_NATIVE || in CheckCallerIsSystemApp() 104 tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_SHELL) { in CheckCallerIsSystemApp()
|
/base/notification/distributed_notification_service/services/ans/src/ |
D | access_token_helper.cpp | 35 ATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in VerifyNativeToken() local 36 return (tokenType == ATokenTypeEnum::TOKEN_NATIVE); in VerifyNativeToken() 67 ATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in VerifyShellToken() local 68 return (tokenType == ATokenTypeEnum::TOKEN_SHELL); in VerifyShellToken()
|
/base/request/request/services/service/rust/src/c_wrapper/source/ |
D | get_calling_bundle.cpp | 27 auto tokenType = AccessTokenKit::GetTokenTypeFlag(static_cast<uint32_t>(tokenId)); in GetCallingBundle() local 28 if (tokenType != TOKEN_HAP) { in GetCallingBundle()
|
D | c_check_permission.cpp | 26 …TypeATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(static_cast<AccessTokenID>(tokenId… in RequestCheckPermission() local 27 if (tokenType == TOKEN_INVALID) { in RequestCheckPermission()
|
/base/security/device_auth/services/frameworks/src/permission_adapter/ |
D | permission_adapter.cpp | 67 ATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(tokenId); in CheckPermission() local 68 if (tokenType != TOKEN_NATIVE) { in CheckPermission() 69 LOGE("Invalid token type: %d", tokenType); in CheckPermission()
|
/base/sensors/sensor/utils/common/src/ |
D | permission_util.cpp | 69 int32_t tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in IsNativeToken() local 70 if (tokenType != ATokenTypeEnum::TOKEN_NATIVE) { in IsNativeToken() 71 SEN_HILOGE("TokenType is not TOKEN_NATIVE, tokenType:%{public}d", tokenType); in IsNativeToken()
|
/base/theme/screenlock_mgr/utils/src/ |
D | screenlock_appinfo.cpp | 25 int32_t tokenType = AccessTokenKit::GetTokenTypeFlag(tokenId); in GetAppInfoByToken() local 26 switch (tokenType) { in GetAppInfoByToken()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_permission_check.cpp | 51 auto tokenType = AccessTokenKit::GetTokenType(tokenId); in CmIsSystemApp() local 52 if (tokenType == TOKEN_HAP) { /* only care about hap type */ in CmIsSystemApp()
|
/base/account/os_account/frameworks/common/utils/src/ |
D | account_permission_manager.cpp | 47 ATokenTypeEnum tokenType = AccessTokenKit::GetTokenType(tokenId); in CheckSystemApp() local 48 …if ((tokenType == ATokenTypeEnum::TOKEN_HAP) && (!TokenIdKit::IsSystemAppByFullTokenID(fullTokenId… in CheckSystemApp()
|
/base/startup/init/device_info/ |
D | device_info_stub.cpp | 115 int32_t tokenType = AccessTokenKit::GetTokenTypeFlag(callerToken); in CheckPermission() local 116 if (tokenType == TOKEN_INVALID) { in CheckPermission() 117 DINFO_LOGE("AccessToken type:%d, permission:%d denied!", tokenType, callerToken); in CheckPermission() 126 …DINFO_LOGI("tokenType %d dAccessTokenID:%d, permission:%s matched!", tokenType, callerToken, permi… in CheckPermission()
|
/base/time/time_service/utils/native/src/ |
D | time_file_utils.cpp | 49 auto tokenType = AccessTokenKit::GetTokenTypeFlag(tokenID); in GetBundleNameByTokenID() local 50 if (tokenType != TypeATokenTypeEnum::TOKEN_HAP) { in GetBundleNameByTokenID()
|
/base/inputmethod/imf/services/src/ |
D | bundle_checker.cpp | 80 auto tokenType = AccessTokenKit::GetTokenTypeFlag(tokenID); in GetBundleNameByToken() local 81 if (tokenType != TOKEN_HAP) { in GetBundleNameByToken()
|
/base/location/frameworks/location_common/common/source/ |
D | common_utils.cpp | 43 auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callerToken); in CheckPermission() local 46 if (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_INVALID) { in CheckPermission() 300 auto tokenType = Security::AccessToken::AccessTokenKit::GetTokenTypeFlag(callerTokenId); in CheckSystemPermission() local 301 if (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_NATIVE) { in CheckSystemPermission() 304 if (tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_SHELL || in CheckSystemPermission() 305 tokenType == Security::AccessToken::ATokenTypeEnum::TOKEN_INVALID) { in CheckSystemPermission()
|
/base/msdp/device_status/rust/services/binding/include/ |
D | fusion_services_binding.h | 35 int32_t moduleType, int32_t *toReturnClientFd, int32_t *tokenType);
|
/base/msdp/device_status/services/native/include/ |
D | i_stream_server.h | 29 int32_t& tokenType) = 0;
|
/base/customization/enterprise_device_management/framework/extension/src/ |
D | enterprise_admin_stub.cpp | 100 Security::AccessToken::ATokenTypeEnum tokenType = in OnRemoteRequest() local 102 if (tokenType != Security::AccessToken::ATokenTypeEnum::TOKEN_NATIVE) { in OnRemoteRequest()
|
/base/print/print_fwk/services/src/ |
D | print_service_helper.cpp | 38 TypeATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(tokenId); in CheckPermission() local 39 if (tokenType == TOKEN_INVALID) { in CheckPermission()
|
/base/sensors/sensor/services/sensor/include/ |
D | stream_server.h | 35 …int32_t AddSocketPairInfo(int32_t uid, int32_t pid, int32_t tokenType, int32_t &serverFd, int32_t …
|
/base/msdp/device_status/rust/services/binding/src/ |
D | fusion_services_binding.cpp | 79 int32_t moduleType, int32_t *toReturnClientFd, int32_t *tokenType) in NativeService_AllocSocketFd() argument
|
/base/sensors/sensor/services/sensor/src/ |
D | stream_server.cpp | 79 int32_t StreamServer::AddSocketPairInfo(int32_t uid, int32_t pid, int32_t tokenType, in AddSocketPairInfo() argument 113 sess->SetTokenType(tokenType); in AddSocketPairInfo()
|
D | sensor_manager.cpp | 188 int32_t tokenType = AccessTokenKit::GetTokenTypeFlag(tokenId); in GetPackageName() local 189 switch (tokenType) { in GetPackageName()
|
/base/msdp/device_status/services/native/src/ |
D | stream_server.cpp | 95 int32_t& serverFd, int32_t& toReturnClientFd, int32_t& tokenType) in AddSocketPairInfo() argument 121 if (tokenType == TokenType::TOKEN_NATIVE) { in AddSocketPairInfo() 141 sess->SetTokenType(tokenType); in AddSocketPairInfo()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_manager.cpp | 211 ATokenTypeEnum tokenType = AccessTokenIDManager::GetInstance().GetTokenIdTypeEnum(tokenID); in VerifyAccessToken() local 212 if ((tokenType == TOKEN_NATIVE) || (tokenType == TOKEN_SHELL)) { in VerifyAccessToken() 215 if (tokenType == TOKEN_HAP) { in VerifyAccessToken() 538 ATokenTypeEnum tokenType = (ATokenTypeEnum)(idInner->type); in GetApiVersionByTokenId() local 539 if (tokenType != TOKEN_HAP) { in GetApiVersionByTokenId() 540 ACCESSTOKEN_LOG_ERROR(LABEL, "invalid token type %{public}d", tokenType); in GetApiVersionByTokenId()
|