Home
last modified time | relevance | path

Searched refs:appUid (Results 1 – 20 of 20) sorted by relevance

/base/notification/common_event_service/services/src/
Dpublish_manager.cpp31 bool PublishManager::CheckIsFloodAttack(pid_t appUid) in CheckIsFloodAttack() argument
37 …EVENT_LOGD("dispatch common event by app (uid = %{publish}d) at now = %{public}" PRId64, appUid, n… in CheckIsFloodAttack()
38 auto iter = floodAttackAppStatistics_.find(appUid); in CheckIsFloodAttack()
40 floodAttackAppStatistics_[appUid].emplace_back(now); in CheckIsFloodAttack()
53 EVENT_LOGW("CES was maliciously attacked by app (uid = %{publish}d)", appUid); in CheckIsFloodAttack()
/base/hiviewdfx/faultloggerd/test/unittest/faultloggerd_client/
Dfaultloggerd_client_test.cpp91 constexpr int32_t appUid = 100068; variable
92 setuid(appUid);
132 constexpr int32_t appUid = 100068; variable
133 setuid(appUid);
136 request.pid = appUid;
176 constexpr int32_t appUid = 100068; variable
178 setuid(appUid);
181 request.pid = appUid;
/base/security/certificate_manager/test/fuzz_test/cmremovegrantedapp_fuzzer/
Dcmremovegrantedapp_fuzzer.cpp41 uint32_t appUid; in DoSomethingInterestingWithMyAPI() local
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &appUid)) { in DoSomethingInterestingWithMyAPI()
48 (void)CmRemoveGrantedApp(&grantKeyUri, appUid); in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/test/fuzz_test/cmgrantappcertificate_fuzzer/
Dcmgrantappcertificate_fuzzer.cpp41 uint32_t appUid; in DoSomethingInterestingWithMyAPI() local
42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &appUid)) { in DoSomethingInterestingWithMyAPI()
54 (void)CmGrantAppCertificate(&keyUri, appUid, &authUri); in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_auth_mgr.c327 uint32_t appUid, struct CmBlob *authUri) in CmAuthGrantAppCertificate() argument
354 ret = GenerateAuthUri(&uriObj, appUid, authUri); in CmAuthGrantAppCertificate()
361 ret = CmAddAuthUid(context, keyUri, appUid); in CmAuthGrantAppCertificate()
370 (void)CmAuthRemoveGrantedApp(context, keyUri, appUid); /* clear auth info */ in CmAuthGrantAppCertificate()
410 if (memcpy_s(appUidList->appUid, appUidList->appUidCount * sizeof(uint32_t), in CmAuthGetAuthorizedAppList()
411 tempAppUidList.appUid, tempAppUidList.appUidCount * sizeof(uint32_t)) != EOK) { in CmAuthGetAuthorizedAppList()
420 CM_FREE_PTR(tempAppUidList.appUid); in CmAuthGetAuthorizedAppList()
504 …AuthRemoveGrantedApp(const struct CmContext *context, const struct CmBlob *keyUri, uint32_t appUid) in CmAuthRemoveGrantedApp() argument
524 ret = DeleteMacKey(&uriObj, appUid); in CmAuthRemoveGrantedApp()
531 ret = CmRemoveAuthUid(context, keyUri, appUid); in CmAuthRemoveGrantedApp()
[all …]
Dcert_manager_service.c146 uint32_t appUid, struct CmBlob *authUri) in CmServiceGrantAppCertificate() argument
158 return CmAuthGrantAppCertificate(context, keyUri, appUid, authUri); in CmServiceGrantAppCertificate()
192 …viceRemoveGrantedApp(const struct CmContext *context, const struct CmBlob *keyUri, uint32_t appUid) in CmServiceRemoveGrantedApp() argument
204 return CmAuthRemoveGrantedApp(context, keyUri, appUid); in CmServiceRemoveGrantedApp()
Dcert_manager_auth_list_mgr.c324 appUidList->appUid = (uint32_t *)data; in FormatAppUidList()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_auth_mgr.h26 uint32_t appUid, struct CmBlob *authUri);
33 …uthRemoveGrantedApp(const struct CmContext *context, const struct CmBlob *keyUri, uint32_t appUid);
Dcert_manager_service.h32 uint32_t appUid, struct CmBlob *authUri);
39 …iceRemoveGrantedApp(const struct CmContext *context, const struct CmBlob *keyUri, uint32_t appUid);
/base/security/certificate_manager/test/unittest/src/
Dcm_get_auth_list_test.cpp76 uint32_t appUid[DEFAULT_APP_UID_COUNT] = {0}; in TearDown() local
77 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in TearDown()
115 uint32_t appUid[DEFAULT_APP_UID_COUNT] = {0}; in CheckGetAuthedList() local
116 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in CheckGetAuthedList()
125 if ((baseAppId + i) == appUidList.appUid[j]) { in CheckGetAuthedList()
362 EXPECT_EQ(*(appUidList.appUid), DEFAULT_BASE_APP_ID);
403 EXPECT_EQ(*(appUidList.appUid), DEFAULT_BASE_APP_ID);
/base/security/certificate_manager/test/unittest/multi_thread_test/src/
Dcm_get_auth_list_multi_thread_test.cpp81 uint32_t appUid[DEFAULT_APP_UID_COUNT] = {0}; in TearDown() local
82 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in TearDown()
120 uint32_t appUid[DEFAULT_APP_UID_COUNT] = {0}; in TestGetAuthedList() local
121 struct CmAppUidList appUidList = { DEFAULT_APP_UID_COUNT, appUid }; in TestGetAuthedList()
129 if ((g_checkBaseAppId + i) == appUidList.appUid[j]) { in TestGetAuthedList()
347 EXPECT_EQ(*(appUidList.appUid), DEFAULT_BASE_APP_ID);
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/include/
Dcm_ipc_client.h46 int32_t CmClientGrantAppCertificate(const struct CmBlob *keyUri, uint32_t appUid, struct CmBlob *au…
52 int32_t CmClientRemoveGrantedApp(const struct CmBlob *keyUri, uint32_t appUid);
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/
Dcert_manager_api.h44 CM_API_EXPORT int32_t CmGrantAppCertificate(const struct CmBlob *keyUri, uint32_t appUid, struct Cm…
50 CM_API_EXPORT int32_t CmRemoveGrantedApp(const struct CmBlob *keyUri, uint32_t appUid);
Dcm_type.h328 uint32_t *appUid; member
/base/notification/common_event_service/services/include/
Dpublish_manager.h39 bool CheckIsFloodAttack(pid_t appUid);
/base/security/certificate_manager/interfaces/kits/napi/src/
Dcm_napi_grant.cpp43 uint32_t appUid = 0; member
69 CM_FREE_PTR(context->uidList->appUid); in FreeGrantAsyncContext()
115 result = ParseString2Uint32(env, argv[index], context->appUid); in ParseGrantUidParams()
199 context->errCode = CmGrantAppCertificate(context->keyUri, context->appUid, context->authUri); in GrantUidExecute()
238 context->errCode = CmRemoveGrantedApp(context->keyUri, context->appUid); in RemoveUidExecute()
279 context->uidList->appUid = static_cast<uint32_t *>(CmMalloc(uidListSize)); in GetUidListExecute()
280 if (context->uidList->appUid == nullptr) { in GetUidListExecute()
285 (void)memset_s(context->uidList->appUid, uidListSize, 0, uidListSize); in GetUidListExecute()
301 … if (snprintf_s(uidStr, sizeof(uidStr), sizeof(uidStr) - 1, "%u", appUidList->appUid[i]) < 0) { in ConvertResultAuthList()
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/src/
Dcert_manager_api.c147 CM_API_EXPORT int32_t CmGrantAppCertificate(const struct CmBlob *keyUri, uint32_t appUid, struct Cm… in CmGrantAppCertificate() argument
155 int32_t ret = CmClientGrantAppCertificate(keyUri, appUid, authUri); in CmGrantAppCertificate()
186 CM_API_EXPORT int32_t CmRemoveGrantedApp(const struct CmBlob *keyUri, uint32_t appUid) in CmRemoveGrantedApp() argument
194 int32_t ret = CmClientRemoveGrantedApp(keyUri, appUid); in CmRemoveGrantedApp()
/base/security/certificate_manager/test/fuzz_test/cmgetauthorizedapplist_fuzzer/
Dcmgetauthorizedapplist_fuzzer.cpp50 appUidList.appUid = reinterpret_cast<uint32_t *>(myData + offset); in DoSomethingInterestingWithMyAPI()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/
Dcm_ipc_client.c635 if (appUidList->appUid == NULL) { in FormatAppUidList()
640 (void)memcpy_s(appUidList->appUid, uidListSize, replyBlob->data + offset, uidListSize); in FormatAppUidList()
646 int32_t CmClientGrantAppCertificate(const struct CmBlob *keyUri, uint32_t appUid, struct CmBlob *au… in CmClientGrantAppCertificate() argument
655 { .tag = CM_TAG_PARAM1_UINT32, .uint32Param = appUid }, in CmClientGrantAppCertificate()
721 int32_t CmClientRemoveGrantedApp(const struct CmBlob *keyUri, uint32_t appUid) in CmClientRemoveGrantedApp() argument
730 { .tag = CM_TAG_PARAM1_UINT32, .uint32Param = appUid }, in CmClientRemoveGrantedApp()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/idl/cm_ipc/
Dcm_ipc_service.c646 appUidList.appUid = (uint32_t *)(outData->data + sizeof(uint32_t)); in GetAuthedList()
768 uint32_t appUid = 0; in CmIpcServiceRemoveGrantedApp() local
771 { .tag = CM_TAG_PARAM1_UINT32, .uint32Param = &appUid }, in CmIpcServiceRemoveGrantedApp()
779 ret = CmServiceRemoveGrantedApp(&cmContext, &keyUri, appUid); in CmIpcServiceRemoveGrantedApp()