Home
last modified time | relevance | path

Searched refs:ownerId (Results 1 – 21 of 21) sorted by relevance

/base/security/code_signature/interfaces/innerkits/code_sign_attr_utils/src/
Dcode_sign_attr_utils.c60 int SetXpmOwnerId(uint32_t idType, const char *ownerId) in SetXpmOwnerId() argument
70 if ((ownerId != NULL) && (strlen(ownerId) != 0)) { in SetXpmOwnerId()
71 if (memcpy_s(config.ownerId, sizeof(config.ownerId) - 1, ownerId, strlen(ownerId)) != EOK) { in SetXpmOwnerId()
72 LOG_ERROR("Memcpy ownerId failed, ownerId: %{public}s", ownerId); in SetXpmOwnerId()
77 LOG_DEBUG("Set type = %{public}u, ownerId = %{public}s", idType, ownerId ? ownerId : "NULL"); in SetXpmOwnerId()
/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/
Dcode_sign_enable_multi_task.cpp45 …ol CodeSignEnableMultiTask::ExecuteEnableCodeSignTask(int32_t &taskRet, const std::string &ownerId, in ExecuteEnableCodeSignTask() argument
53 ExecuteEnableCodeSignTask(i, taskRet, ownerId, path, func); in ExecuteEnableCodeSignTask()
72 const std::string &ownerId, const std::string &path, CallbackFunc &func) in ExecuteEnableCodeSignTask() argument
74 auto enableCodeSignTask = [this, index, &ownerId, &path, &func, &taskRet]() { in ExecuteEnableCodeSignTask()
87 int32_t ret = CheckOwnerId(path, ownerId, in ExecuteEnableCodeSignTask()
107 int32_t CodeSignEnableMultiTask::CheckOwnerId(const std::string &path, const std::string &ownerId, in CheckOwnerId() argument
110 if (ownerId.empty()) { in CheckOwnerId()
120 ReportInvalidOwner(path, ownerId, "invalid"); in CheckOwnerId()
122 } else if (retId != ownerId) { in CheckOwnerId()
124 ReportInvalidOwner(path, ownerId, retId); in CheckOwnerId()
[all …]
Dcode_sign_helper.cpp32 int32_t CodeSignHelper::ProcessMultiTask(const std::string &ownerId, const std::string &path, Callb… in ProcessMultiTask() argument
44 return ExecuteMultiTask(ret, ownerId, path, func); in ProcessMultiTask()
67 int32_t CodeSignHelper::ExecuteMultiTask(int32_t ret, const std::string &ownerId, in ExecuteMultiTask() argument
70 bool waitStatus = multiTask_.ExecuteEnableCodeSignTask(ret, ownerId, path, func); in ExecuteMultiTask()
Dcode_sign_utils.cpp212 int32_t CodeSignUtils::EnforceCodeSignForAppWithOwnerId(const std::string &ownerId, const std::stri… in EnforceCodeSignForAppWithOwnerId() argument
229 return ProcessCodeSignBlock(ownerId, path, type); in EnforceCodeSignForAppWithOwnerId()
232 int32_t CodeSignUtils::ProcessCodeSignBlock(const std::string &ownerId, const std::string &path, Fi… in ProcessCodeSignBlock() argument
248 return codeSignHelper.ProcessMultiTask(ownerId, path, EnableCodeSignForFile); in ProcessCodeSignBlock()
/base/security/code_signature/interfaces/innerkits/code_sign_utils/include/
Dcode_sign_enable_multi_task.h52 bool ExecuteEnableCodeSignTask(int32_t &taskRet, const std::string &ownerId,
56 void ExecuteEnableCodeSignTask(uint32_t &index, int32_t &taskRet, const std::string &ownerId,
58 int32_t CheckOwnerId(const std::string &path, const std::string &ownerId,
Dcode_sign_helper.h43 … int32_t ProcessMultiTask(const std::string &ownerId, const std::string &path, CallbackFunc &func);
46 …int32_t ExecuteMultiTask(int32_t ret, const std::string &ownerId, const std::string &path, Callbac…
Dcode_sign_utils.h70 int32_t EnforceCodeSignForAppWithOwnerId(const std::string &ownerId, const std::string &path,
128 … int32_t ProcessCodeSignBlock(const std::string &ownerId, const std::string &path, FileType type);
/base/security/code_signature/interfaces/innerkits/code_sign_attr_utils/include/
Dcode_sign_attr_utils.h64 char ownerId[MAX_OWNERID_LEN]; member
69 int SetXpmOwnerId(uint32_t idType, const char *ownerId);
/base/security/code_signature/
DREADME_zh.md45 | int32_t EnforceCodeSignForAppWithOwnerId(std::string ownerId, const std::string &path, const Entr…
53 | int SetXpmOwnerId(uint32_t idType, const char *ownerId); | 设置OwnerId |
DREADME.md45 | int32_t EnforceCodeSignForAppWithOwnerId(std::string ownerId, const std::string &path, const Entr…
53 | int SetXpmOwnerId(uint32_t idType, const char *ownerId); | Sets an owner ID.|
/base/startup/appspawn/interfaces/innerkits/include/
Dappspawn_msg.h103 char ownerId[APP_OWNER_ID_LEN]; // app identifier id member
/base/startup/appspawn/modules/module_engine/include/
Dappspawn_msg.h100 char ownerId[0]; // app identifier id member
/base/startup/appspawn/interfaces/innerkits_new/include/
Dappspawn.h217 int AppSpawnReqMsgSetAppOwnerId(AppSpawnReqMsgHandle reqHandle, const char *ownerId);
/base/startup/appspawn/interfaces/innerkits_new/client/
Dappspawn_msg.c475 int AppSpawnReqMsgSetAppOwnerId(AppSpawnReqMsgHandle reqHandle, const char *ownerId) in AppSpawnReqMsgSetAppOwnerId() argument
479 int ret = CheckInputString("TLV_OWNER_INFO", ownerId, APP_OWNER_ID_LEN); in AppSpawnReqMsgSetAppOwnerId()
483 data[0].data = (uint8_t *)ownerId; in AppSpawnReqMsgSetAppOwnerId()
484 data[0].dataLen = strlen(ownerId); in AppSpawnReqMsgSetAppOwnerId()
/base/startup/appspawn/test/moduletest/
Dappspawn_test_cmder.cpp281 std::string ownerId = GetStringFromJsonObj(appInfoConfig, "owner-id"); in BuildMsgFromJson() local
282 if (!ownerId.empty()) { in BuildMsgFromJson()
283 ret = AppSpawnReqMsgSetAppOwnerId(reqHandle, ownerId.c_str()); in BuildMsgFromJson()
/base/startup/appspawn/test/unittest/app_spawn_client_test/
Dapp_spawn_interface_test.cpp350 …const char *ownerId[] = {"FILE_ACCESS_MANAGER", name1.data(), name2.data(), name3.data(), "", null… variable
352 for (size_t j = 0; j < ARRAY_LENGTH(ownerId); j++) {
354 ret = AppSpawnReqMsgSetAppOwnerId(inputHandle[i], ownerId[j]);
Dapp_spawn_client_test.cpp350 const char *ownerId = "test 2222222222222222222222222222222222222222222222223451234567"; variable
351 ret = AppSpawnReqMsgSetAppOwnerId(reqHandle, ownerId);
360 APPSPAWN_LOGV("owner->ownerId %{public}s", owner->ownerId);
361 …APPSPAWN_CHECK(strcmp(owner->ownerId, ownerId) == 0, break, "Invalid ownerId %{public}s", ownerId);
/base/startup/appspawn/test/fuzztest/appspawnclient_fuzzer/
Dappspawnclient_fuzzer.cpp233 std::string ownerId(reinterpret_cast<const char*>(data), size); in FuzzAppSpawnReqMsgSetAppOwnerId()
234 (void)AppSpawnReqMsgSetAppOwnerId(reqHandle, ownerId.c_str()); in FuzzAppSpawnReqMsgSetAppOwnerId()
/base/notification/eventhandler/interfaces/inner_api/
Dinner_event.h711 inline void SetOwnerId(std::string ownerId) in SetOwnerId() argument
713 ownerId_ = ownerId; in SetOwnerId()
/base/startup/appspawn/modules/common/
Dappspawn_common.c205 ret = SetXpmOwnerId(PROCESS_OWNERID_APP, ownerInfo->ownerId); in SetXpmConfig()
/base/startup/appspawn/standard/
Dappspawn_msgmgr.c396 …SPAWN_ONLY_EXPER(owner != NULL, APPSPAPWN_DUMP("App owner info: \"%{public}s\" ", owner->ownerId)); in DumpAppSpawnMsg()