/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/ |
D | hks_response.cpp | 77 auto callingUid = IPCSkeleton::GetCallingUid(); in HksGetProcessNameForIPC() local 78 uint8_t *name = static_cast<uint8_t *>(HksMalloc(sizeof(callingUid))); in HksGetProcessNameForIPC() 81 (void)memcpy_s(name, sizeof(callingUid), &callingUid, sizeof(callingUid)); in HksGetProcessNameForIPC() 82 processName->size = sizeof(callingUid); in HksGetProcessNameForIPC() 94 auto callingUid = IPCSkeleton::GetCallingUid(); in HksGetProcessInfoForIPC() local 95 uint8_t *name = static_cast<uint8_t *>(HksMalloc(sizeof(callingUid))); in HksGetProcessInfoForIPC() 98 (void)memcpy_s(name, sizeof(callingUid), &callingUid, sizeof(callingUid)); in HksGetProcessInfoForIPC() 99 processInfo->processName.size = sizeof(callingUid); in HksGetProcessInfoForIPC() 104 OHOS::AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(callingUid, userId); in HksGetProcessInfoForIPC() 105 …etProcessInfoForIPC callingUid = %" LOG_PUBLIC "d, userId = %" LOG_PUBLIC "d", callingUid, userId); in HksGetProcessInfoForIPC() [all …]
|
D | hks_response_samgr.c | 62 uint32_t callingUid = (uint32_t)(ipcContext->callingUid); in HksGetProcessNameForIPC() local 63 uint8_t *name = (uint8_t *)HksMalloc(sizeof(callingUid)); in HksGetProcessNameForIPC() 66 if (memcpy_s(name, sizeof(callingUid), &callingUid, sizeof(callingUid)) != EOK) { in HksGetProcessNameForIPC() 70 processName->size = sizeof(callingUid); in HksGetProcessNameForIPC()
|
/base/location/services/location_gnss/gnss/source/ |
D | gnss_ability_skeleton.cpp | 30 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local 32 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest() 44 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 51 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 58 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 65 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 69 reply.WriteInt32(RegisterGnssStatusCallback(client, callingUid)); in OnRemoteRequest() 73 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 81 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 85 reply.WriteInt32(RegisterNmeaMessageCallback(client, callingUid)); in OnRemoteRequest() [all …]
|
/base/location/services/location_passive/passive/source/ |
D | passive_ability_skeleton.cpp | 34 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local 36 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest() 47 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 55 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 62 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 69 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 76 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
|
/base/location/services/location_network/network/source/ |
D | network_ability_skeleton.cpp | 35 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local 37 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest() 50 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 57 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 64 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 71 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_manager_service.cpp | 46 int32_t callingUid = -1; in AddAccount() local 49 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in AddAccount() 53 return innerManager_->AddAccount(name, extraInfo, callingUid, bundleName, appIndex); in AddAccount() 78 int32_t callingUid = -1; in CreateAccount() local 81 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in CreateAccount() 85 return innerManager_->CreateAccount(name, options, callingUid, bundleName, appIndex); in CreateAccount() 108 int32_t callingUid = -1; in DeleteAccount() local 111 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in DeleteAccount() 115 return innerManager_->DeleteAccount(name, callingUid, bundleName, appIndex); in DeleteAccount() 120 int32_t callingUid = -1; in GetAccountExtraInfo() local [all …]
|
/base/location/services/location_geocode/geocode/source/ |
D | geo_convert_skeleton.cpp | 27 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local 29 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest() 40 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 47 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 54 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 61 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 69 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest() 77 if (!CommonUtils::CheckCallingPermission(callingUid, callingPid, reply)) { in OnRemoteRequest()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/ |
D | cm_response.cpp | 57 auto callingUid = IPCSkeleton::GetCallingUid(); in CmGetProcessInfoForIPC() local 59 OHOS::AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(callingUid, userId); in CmGetProcessInfoForIPC() 60 CM_LOG_I("CmGetProcessInfoForIPC callingUid = %d, userId = %d", callingUid, userId); in CmGetProcessInfoForIPC() 62 cmContext->uid = (uint32_t)callingUid; in CmGetProcessInfoForIPC()
|
/base/hiviewdfx/faultloggerd/services/ |
D | fault_logger_secure.cpp | 121 bool FaultLoggerSecure::CheckCallerUID(const int callingUid, const int32_t pid) in CheckCallerUID() argument 124 if ((callingUid < 0) || (pid <= 0)) { in CheckCallerUID() 129 if ((callingUid == BMS_UID) || in CheckCallerUID() 130 (callingUid == ROOT_UID) || in CheckCallerUID() 131 (callingUid == HIVIEW_UID) || in CheckCallerUID() 132 (callingUid == HIDUMPER_SERVICE_UID)) { in CheckCallerUID()
|
D | fault_logger_secure.h | 29 static bool CheckCallerUID(const int callingUid, const int32_t pid);
|
/base/security/permission_lite/services/pms/src/ |
D | pms_server_internal.c | 127 uid_t callingUid = GetCallingUid(); in ReplyCheckPermission() local 128 …G_INFO(HILOG_MODULE_APP, "Enter ID_CHECK, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyCheckPermission() 142 uid_t callingUid = GetCallingUid(); in ReplyGrantPermission() local 143 …G_INFO(HILOG_MODULE_APP, "Enter ID_GRANT, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyGrantPermission() 156 uid_t callingUid = GetCallingUid(); in ReplyRevokePermission() local 157 …_INFO(HILOG_MODULE_APP, "Enter ID_REVOKE, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyRevokePermission() 170 uid_t callingUid = GetCallingUid(); in ReplyGrantRuntimePermission() local 171 …HILOG_MODULE_APP, "Enter ID_GRANTRUNTIME, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyGrantRuntimePermission() 184 uid_t callingUid = GetCallingUid(); in ReplyRevokeRuntimePermission() local 185 …ILOG_MODULE_APP, "Enter ID_REVOKERUNTIME, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyRevokeRuntimePermission() [all …]
|
D | pms_server.c | 114 uid_t callingUid = GetCallingUid(); in ReplyCheckSelfPermission() local 115 …FO(HILOG_MODULE_APP, "Enter ID_CHECKSELF, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyCheckSelfPermission() 119 int32_t ret = api->CheckPermission(callingUid, permName); in ReplyCheckSelfPermission() 120 …HILOG_INFO(HILOG_MODULE_APP, "check self permission, [uid: %u][perm: %s][ret: %d]", callingUid, pe… in ReplyCheckSelfPermission() 127 uid_t callingUid = GetCallingUid(); in ReplyQueryPermission() local 128 …G_INFO(HILOG_MODULE_APP, "Enter ID_Query, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyQueryPermission()
|
/base/telephony/call_manager/services/video/src/ |
D | video_control_manager.cpp | 45 int32_t VideoControlManager::ControlCamera(std::u16string cameraId, int32_t callingUid, int32_t cal… in ControlCamera() argument 48 return CloseCamera(cameraId, callingUid, callingPid); in ControlCamera() 50 return OpenCamera(cameraId, callingUid, callingPid); in ControlCamera() 97 int32_t VideoControlManager::OpenCamera(std::u16string cameraId, int32_t callingUid, int32_t callin… in OpenCamera() argument 107 …DelayedSingleton<CellularCallConnection>::GetInstance()->ControlCamera(cameraId, callingUid, calli… in OpenCamera() 114 int32_t VideoControlManager::CloseCamera(std::u16string cameraId, int32_t callingUid, int32_t calli… in CloseCamera() argument 118 cameraId, callingUid, callingPid); in CloseCamera()
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | at_not_mock_app_account_manager_service_module_test.cpp | 67 int32_t callingUid; variable 70 … int result = g_accountManagerService->GetBundleNameAndCheckPerm(callingUid, bundleName, permName); 85 int32_t callingUid; variable 88 int result = g_accountManagerService->GetCallingInfo(callingUid, bundleName, appIndex);
|
/base/useriam/user_auth_framework/services/context/src/ |
D | trace.cpp | 79 if (metaData.callingUid.has_value()) { in ProcessUserAuthEvent() 80 info.callingUid = metaData.callingUid.value(); in ProcessUserAuthEvent() 113 if (metaData.callingUid.has_value()) { in ProcessPinAuthEvent() 114 info.callingUid = metaData.callingUid.value(); in ProcessPinAuthEvent()
|
D | context_callback_impl.cpp | 97 void ContextCallbackImpl::SetTraceCallingUid(uint64_t callingUid) in SetTraceCallingUid() argument 99 metaData_.callingUid = callingUid; in SetTraceCallingUid()
|
/base/telephony/call_manager/services/video/include/ |
D | video_control_manager.h | 30 int32_t ControlCamera(std::u16string cameraId, int32_t callingUid, int32_t callingPid); 38 int32_t OpenCamera(std::u16string cameraId, int32_t callingUid, int32_t callingPid); 39 int32_t CloseCamera(std::u16string cameraId, int32_t callingUid, int32_t callingPid);
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
D | bundle_manager_helper_test.cpp | 49 pid_t callingUid = IPCSkeleton::GetCallingUid(); variable 51 EXPECT_EQ(bundleManager->GetBundleNameByUid(callingUid), "bundleName"); 61 pid_t callingUid = IPCSkeleton::GetCallingUid(); variable 63 EXPECT_TRUE(bundleManager->IsSystemApp(callingUid));
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
D | sys_event_service_ohos.cpp | 338 auto callingUid = IPCSkeleton::GetCallingUid(); in BuildEventQuery() local 339 if (rules.empty() && (callingUid == HID_SHELL || callingUid == HID_ROOT || in BuildEventQuery() 340 callingUid == HID_OHOS)) { in BuildEventQuery() 346 return !any_of(rules.cbegin(), rules.cend(), [this, callingUid, &builder] (auto& rule) { in BuildEventQuery() 347 if (rule.domain.empty() && callingUid != HID_SHELL && callingUid != HID_ROOT && in BuildEventQuery() 348 callingUid != HID_OHOS) { in BuildEventQuery() 352 [this, callingUid, &builder, &rule] (auto& eventName) { in BuildEventQuery() 353 if (eventName.empty() && callingUid != HID_SHELL && callingUid != HID_ROOT && in BuildEventQuery() 354 callingUid != HID_OHOS) { in BuildEventQuery() 425 auto callingUid = IPCSkeleton::GetCallingUid(); in HasAccessPermission() local [all …]
|
/base/hiviewdfx/faultloggerd/test/unittest/services/src/ |
D | faultlogger_secure_test.cpp | 53 int callingUid = 1000; variable 55 bool ret = secure->CheckCallerUID(callingUid, pid);
|
/base/useriam/user_auth_framework/frameworks/native/common/dfx/inc/ |
D | hisysevent_adapter.h | 25 uint64_t callingUid = 0; member 35 uint64_t callingUid = 0; member
|
/base/security/access_token/services/tokensyncmanager/src/service/ |
D | token_sync_manager_stub.cpp | 67 int callingUid = IPCSkeleton::GetCallingUid(); in IsRootCalling() local 68 ACCESSTOKEN_LOG_DEBUG(LABEL, "Calling uid: %{public}d", callingUid); in IsRootCalling() 69 return callingUid == ROOT_UID; in IsRootCalling()
|
/base/useriam/user_auth_framework/frameworks/native/common/dfx/src/ |
D | hisysevent_adapter.cpp | 108 STR_CALLING_ID, info.callingUid, in ReportUserAuth() 117 ret, info.callingUid, info.authType, info.atl, info.authResult, in ReportUserAuth() 127 STR_CALLING_ID, info.callingUid, in ReportPinAuth() 135 ret, info.userId, info.callingUid, info.authTimeString.c_str(), info.authResult, in ReportPinAuth()
|
/base/notification/common_event_service/services/src/ |
D | common_event_manager_service.cpp | 221 auto callingUid = IPCSkeleton::GetCallingUid(); in SubscribeCommonEvent() local 223 …tring bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(callingUid); in SubscribeCommonEvent() 231 callingUid, in SubscribeCommonEvent() 243 callingUid, in SubscribeCommonEvent() 293 auto callingUid = IPCSkeleton::GetCallingUid(); in GetStickyCommonEvent() local 294 …tring bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(callingUid); in GetStickyCommonEvent() 300 callingUid); in GetStickyCommonEvent()
|
/base/useriam/user_auth_framework/services/context/inc/ |
D | context_callback.h | 45 std::optional<uint64_t> callingUid; member 70 virtual void SetTraceCallingUid(uint64_t callingUid) = 0;
|