Home
last modified time | relevance | path

Searched refs:callingUid (Results 1 – 25 of 58) sorted by relevance

123

/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/ipc/
Dhks_response.cpp63 auto callingUid = IPCSkeleton::GetCallingUid(); in HksGetProcessNameForIPC() local
64 uint8_t *name = (uint8_t *)HksMalloc(sizeof(callingUid)); in HksGetProcessNameForIPC()
70 (void)memcpy_s(name, sizeof(callingUid), &callingUid, sizeof(callingUid)); in HksGetProcessNameForIPC()
71 processName->size = sizeof(callingUid); in HksGetProcessNameForIPC()
83 auto callingUid = IPCSkeleton::GetCallingUid(); in HksGetProcessInfoForIPC() local
84 uint8_t *name = (uint8_t *)HksMalloc(sizeof(callingUid)); in HksGetProcessInfoForIPC()
89 (void)memcpy_s(name, sizeof(callingUid), &callingUid, sizeof(callingUid)); in HksGetProcessInfoForIPC()
90 processInfo->processName.size = sizeof(callingUid); in HksGetProcessInfoForIPC()
95 OHOS::AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(callingUid, userId); in HksGetProcessInfoForIPC()
96 HKS_LOG_I("HksGetProcessInfoForIPC callingUid = %d, userId = %d", callingUid, userId); in HksGetProcessInfoForIPC()
Dhks_response_samgr.c61 uint32_t callingUid = (uint32_t)(ipcContext->callingUid); in HksGetProcessNameForIPC() local
62 uint8_t *name = (uint8_t *)HksMalloc(sizeof(callingUid)); in HksGetProcessNameForIPC()
68 if (memcpy_s(name, sizeof(callingUid), &callingUid, sizeof(callingUid)) != EOK) { in HksGetProcessNameForIPC()
72 processName->size = sizeof(callingUid); in HksGetProcessNameForIPC()
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_manager_service.cpp47 auto callingUid = IPCSkeleton::GetCallingUid(); in AddAccount() local
50 ErrCode result = bundleManagerPtr_->GetBundleName(callingUid, bundleName); in AddAccount()
56 return innerManager_->AddAccount(name, extraInfo, callingUid, bundleName); in AddAccount()
86 auto callingUid = IPCSkeleton::GetCallingUid(); in DeleteAccount() local
89 ErrCode result = bundleManagerPtr_->GetBundleName(callingUid, bundleName); in DeleteAccount()
95 return innerManager_->DeleteAccount(name, callingUid, bundleName); in DeleteAccount()
102 auto callingUid = IPCSkeleton::GetCallingUid(); in GetAccountExtraInfo() local
105 ErrCode result = bundleManagerPtr_->GetBundleName(callingUid, bundleName); in GetAccountExtraInfo()
111 return innerManager_->GetAccountExtraInfo(name, extraInfo, callingUid, bundleName); in GetAccountExtraInfo()
118 auto callingUid = IPCSkeleton::GetCallingUid(); in SetAccountExtraInfo() local
[all …]
/base/notification/ans_standard/services/ans/test/unittest/
Dbundle_manager_helper_test.cpp43 pid_t callingUid = IPCSkeleton::GetCallingUid(); variable
45 EXPECT_EQ(bundleManager->GetBundleNameByUid(callingUid), "bundleName");
55 pid_t callingUid = IPCSkeleton::GetCallingUid(); variable
57 EXPECT_TRUE(bundleManager->IsSystemApp(callingUid));
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_secure.cpp121 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()
Dfault_logger_secure.h29 static bool CheckCallerUID(const int callingUid, const int32_t pid);
/base/security/permission/services/permission_lite/pms/src/
Dpms_server_internal.c127 uid_t callingUid = GetCallingUid(origin); in ReplyCheckPermission() local
128 …G_INFO(HILOG_MODULE_APP, "Enter ID_CHECK, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyCheckPermission()
141 uid_t callingUid = GetCallingUid(origin); in ReplyGrantPermission() local
142 …G_INFO(HILOG_MODULE_APP, "Enter ID_GRANT, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyGrantPermission()
155 uid_t callingUid = GetCallingUid(origin); in ReplyRevokePermission() local
156 …_INFO(HILOG_MODULE_APP, "Enter ID_REVOKE, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyRevokePermission()
169 uid_t callingUid = GetCallingUid(origin); in ReplyGrantRuntimePermission() local
170 …HILOG_MODULE_APP, "Enter ID_GRANTRUNTIME, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyGrantRuntimePermission()
182 uid_t callingUid = GetCallingUid(origin); in ReplyRevokeRuntimePermission() local
183 …ILOG_MODULE_APP, "Enter ID_REVOKERUNTIME, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyRevokeRuntimePermission()
[all …]
Dpms_server.c121 uid_t callingUid = GetCallingUid(origin); in ReplyCheckSelfPermission() local
122 …FO(HILOG_MODULE_APP, "Enter ID_CHECKSELF, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyCheckSelfPermission()
126 int32_t ret = api->CheckPermission(callingUid, permName); in ReplyCheckSelfPermission()
127 …HILOG_INFO(HILOG_MODULE_APP, "check self permission, [uid: %u][perm: %s][ret: %d]", callingUid, pe… in ReplyCheckSelfPermission()
134 uid_t callingUid = GetCallingUid(origin); in ReplyQueryPermission() local
135 …G_INFO(HILOG_MODULE_APP, "Enter ID_Query, [callerPid: %d][callerUid: %u]", callingPid, callingUid); in ReplyQueryPermission()
/base/telephony/call_manager/services/video/src/
Dvideo_control_manager.cpp45 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()
103 int32_t VideoControlManager::OpenCamera(std::u16string cameraId, int32_t callingUid, int32_t callin… in OpenCamera() argument
113 …DelayedSingleton<CellularCallConnection>::GetInstance()->ControlCamera(cameraId, callingUid, calli… in OpenCamera()
120 int32_t VideoControlManager::CloseCamera(std::u16string cameraId, int32_t callingUid, int32_t calli… in CloseCamera() argument
124 cameraId, callingUid, callingPid); in CloseCamera()
/base/location/location_geocode/geocode/source/
Dgeo_convert_skeleton.cpp27 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local
29 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest()
30 if (callingUid > SYSTEM_UID) { in OnRemoteRequest()
/base/telephony/call_manager/services/video/include/
Dvideo_control_manager.h30 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/location/location_locator/locator/source/
Dlocator_skeleton.cpp92 pid_t callingUid = IPCSkeleton::GetCallingUid(); in ProcessMsgRequirLocationPermission() local
96 callingPid, callingUid); in ProcessMsgRequirLocationPermission()
106 RegisterGnssStatusCallback(client, callingUid); in ProcessMsgRequirLocationPermission()
116 RegisterNmeaMessageCallback(client, callingUid); in ProcessMsgRequirLocationPermission()
129 ParseDataAndStartLocating(data, reply, callingPid, callingUid); in ProcessMsgRequirLocationPermission()
255 pid_t callingUid = IPCSkeleton::GetCallingUid(); in ProcessMsgRequirSecureSettingsPermission() local
274 RegisterSwitchCallback(client, callingUid); in ProcessMsgRequirSecureSettingsPermission()
283 if (!CommonUtils::CheckSystemCalling(callingUid)) { in ProcessMsgRequirSecureSettingsPermission()
301 pid_t callingUid = IPCSkeleton::GetCallingUid(); in ProcessMsg() local
306 if (!CommonUtils::CheckSystemCalling(callingUid)) { in ProcessMsg()
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/services/src/
Dfaultlogger_secure_test.cpp53 int callingUid = 1000; variable
55 bool ret = secure->CheckCallerUID(callingUid, pid);
/base/notification/ces_standard/services/ces/src/
Dcommon_event_manager_service.cpp215 auto callingUid = IPCSkeleton::GetCallingUid(); in SubscribeCommonEvent() local
216 …tring bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(callingUid); in SubscribeCommonEvent()
227 callingUid, in SubscribeCommonEvent()
259 auto callingUid = IPCSkeleton::GetCallingUid(); in GetStickyCommonEvent() local
260 …tring bundleName = DelayedSingleton<BundleManagerHelper>::GetInstance()->GetBundleName(callingUid); in GetStickyCommonEvent()
266 callingUid); in GetStickyCommonEvent()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Daccount_bundle_manager_module_test.cpp81 auto callingUid = IPCSkeleton::GetCallingUid(); variable
84 ErrCode result = bundleManagerPtr_->GetBundleInfo(callingUid, bundleName, bundleInfo);
/base/account/os_account/services/accountmgr/test/unittest/app_account/
Daccount_bundle_manager_test.cpp89 auto callingUid = IPCSkeleton::GetCallingUid(); variable
92 ErrCode result = bundleManagerPtr_->GetBundleInfo(callingUid, bundleName, bundleInfo);
/base/location/location_common/common/source/
Dlocation_config_manager.cpp88 pid_t callingUid = IPCSkeleton::GetCallingUid(); in GetLocationSwitchConfigPath() local
89 int32_t userId = callingUid / PER_USER_RANGE; in GetLocationSwitchConfigPath()
97 pid_t callingUid = IPCSkeleton::GetCallingUid(); in GetPrivacyTypeConfigPath() local
98 int32_t userId = callingUid / PER_USER_RANGE; in GetPrivacyTypeConfigPath()
/base/miscservices/screenlock/services/src/
Dscreenlock_system_ability.cpp458 int callingUid = IPCSkeleton::GetCallingUid(); in GetSecure() local
459 SCLOCK_HILOGD("ScreenLockSystemAbility::GetSecure callingUid=%{public}d", callingUid); in GetSecure()
461 AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(callingUid, userId); in GetSecure()
490 int callingUid = IPCSkeleton::GetCallingUid(); in On() local
491 SCLOCK_HILOGD("ScreenLockSystemAbility::On callingUid=%{public}d", callingUid); in On()
493 if (!ScreenLockBundleName::GetBundleNameByUid(callingUid, bundleName)) { in On()
521 int callingUid = IPCSkeleton::GetCallingUid(); in Off() local
522 SCLOCK_HILOGD("ScreenLockSystemAbility::Off callingUid=%{public}d", callingUid); in Off()
524 if (!ScreenLockBundleName::GetBundleNameByUid(callingUid, bundleName)) { in Off()
549 int callingUid = IPCSkeleton::GetCallingUid(); in SendScreenLockEvent() local
[all …]
/base/location/location_locator/callback/source/
Dlocator_callback_proxy.cpp89 pid_t callingUid = IPCSkeleton::GetCallingUid(); in OnRemoteRequest() local
91 code, option.GetFlags(), callingPid, callingUid); in OnRemoteRequest()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_mgr/
Dhks_samgr_server.h37 uint32_t callingUid; member
Dhks_samgr_service_feature.c88 uint32_t callingUid = GetCallingUid(origin); in Invoke() local
89 HksIpcContext ipcContext = { reply, callingUid }; in Invoke()
/base/security/permission/services/permission_standard/permissionmanagerservice/main/cpp/src/
Dpermission_manager_stub.cpp260 int callingUid = IPCSkeleton::GetCallingUid(); in IsAuthorizedCalling() local
261 PERMISSION_LOG_INFO(LABEL, "Calling uid: %{public}d", callingUid); in IsAuthorizedCalling()
262 return callingUid == SYSTEM_UID || callingUid == ROOT_UID; in IsAuthorizedCalling()
/base/notification/ans_standard/services/ans/src/
Dnotification_subscriber_manager.cpp70 int callingUid = IPCSkeleton::GetCallingUid(); in AddSubscriber() local
71 … ErrCode ret = OHOS::AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(callingUid, userId); in AddSubscriber()
73 ANS_LOGD("Get userId failed, callingUid = <%{public}d>", callingUid); in AddSubscriber()
77 …_LOGD("Get userId successed, callingUid = <%{public}d> userId = <%{public}d>", callingUid, userId); in AddSubscriber()
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/
Dhks_sa.cpp286 auto callingUid = IPCSkeleton::GetCallingUid(); in CanRequest() local
287 return (callingUid == UID_ROOT) || (callingUid == UID_SYSTEM); in CanRequest()
/base/notification/ces_standard/services/test/unittest/
Dcommon_event_freeze_test.cpp72 …ol SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber, uid_t callingUid,
285 uid_t callingUid, OHOS::sptr<OHOS::IRemoteObject> &commonEventListener) in SubscribeCommonEvent() argument
307 callingUid, in SubscribeCommonEvent()
331 uid_t callingUid = 0; in PublishCommonEvent() local
343 callingUid, in PublishCommonEvent()

123