Home
last modified time | relevance | path

Searched refs:tokenType (Results 1 – 25 of 39) sorted by relevance

12

/base/time/time_service/services/
Dtime_permission.cpp33 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/
Daccess_token_helper.cpp30 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/
Dtelephony_permission.cpp72 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/
Daccess_token_helper.cpp35 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/
Dget_calling_bundle.cpp27 auto tokenType = AccessTokenKit::GetTokenTypeFlag(static_cast<uint32_t>(tokenId)); in GetCallingBundle() local
28 if (tokenType != TOKEN_HAP) { in GetCallingBundle()
Dc_check_permission.cpp26 …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/
Dpermission_adapter.cpp67 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/
Dpermission_util.cpp69 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/
Dscreenlock_appinfo.cpp25 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/
Dcert_manager_permission_check.cpp51 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/
Daccount_permission_manager.cpp47 ATokenTypeEnum tokenType = AccessTokenKit::GetTokenType(tokenId); in CheckSystemApp() local
48 …if ((tokenType == ATokenTypeEnum::TOKEN_HAP) && (!TokenIdKit::IsSystemAppByFullTokenID(fullTokenId… in CheckSystemApp()
/base/startup/init/device_info/
Ddevice_info_stub.cpp115 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/
Dtime_file_utils.cpp49 auto tokenType = AccessTokenKit::GetTokenTypeFlag(tokenID); in GetBundleNameByTokenID() local
50 if (tokenType != TypeATokenTypeEnum::TOKEN_HAP) { in GetBundleNameByTokenID()
/base/inputmethod/imf/services/src/
Dbundle_checker.cpp80 auto tokenType = AccessTokenKit::GetTokenTypeFlag(tokenID); in GetBundleNameByToken() local
81 if (tokenType != TOKEN_HAP) { in GetBundleNameByToken()
/base/location/frameworks/location_common/common/source/
Dcommon_utils.cpp43 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/
Dfusion_services_binding.h35 int32_t moduleType, int32_t *toReturnClientFd, int32_t *tokenType);
/base/msdp/device_status/services/native/include/
Di_stream_server.h29 int32_t& tokenType) = 0;
/base/customization/enterprise_device_management/framework/extension/src/
Denterprise_admin_stub.cpp100 Security::AccessToken::ATokenTypeEnum tokenType = in OnRemoteRequest() local
102 if (tokenType != Security::AccessToken::ATokenTypeEnum::TOKEN_NATIVE) { in OnRemoteRequest()
/base/print/print_fwk/services/src/
Dprint_service_helper.cpp38 TypeATokenTypeEnum tokenType = AccessTokenKit::GetTokenTypeFlag(tokenId); in CheckPermission() local
39 if (tokenType == TOKEN_INVALID) { in CheckPermission()
/base/sensors/sensor/services/sensor/include/
Dstream_server.h35 …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/
Dfusion_services_binding.cpp79 int32_t moduleType, int32_t *toReturnClientFd, int32_t *tokenType) in NativeService_AllocSocketFd() argument
/base/sensors/sensor/services/sensor/src/
Dstream_server.cpp79 int32_t StreamServer::AddSocketPairInfo(int32_t uid, int32_t pid, int32_t tokenType, in AddSocketPairInfo() argument
113 sess->SetTokenType(tokenType); in AddSocketPairInfo()
Dsensor_manager.cpp188 int32_t tokenType = AccessTokenKit::GetTokenTypeFlag(tokenId); in GetPackageName() local
189 switch (tokenType) { in GetPackageName()
/base/msdp/device_status/services/native/src/
Dstream_server.cpp95 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/
Dpermission_manager.cpp211 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()

12