/base/security/code_signature/interfaces/innerkits/code_sign_attr_utils/src/ |
D | code_sign_attr_utils.c | 60 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/ |
D | code_sign_enable_multi_task.cpp | 45 …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 …]
|
D | code_sign_helper.cpp | 32 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()
|
D | code_sign_utils.cpp | 212 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/ |
D | code_sign_enable_multi_task.h | 52 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,
|
D | code_sign_helper.h | 43 … 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…
|
D | code_sign_utils.h | 70 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/ |
D | code_sign_attr_utils.h | 64 char ownerId[MAX_OWNERID_LEN]; member 69 int SetXpmOwnerId(uint32_t idType, const char *ownerId);
|
/base/security/code_signature/ |
D | README_zh.md | 45 | int32_t EnforceCodeSignForAppWithOwnerId(std::string ownerId, const std::string &path, const Entr… 53 | int SetXpmOwnerId(uint32_t idType, const char *ownerId); | 设置OwnerId |
|
D | README.md | 45 | 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/ |
D | appspawn_msg.h | 103 char ownerId[APP_OWNER_ID_LEN]; // app identifier id member
|
/base/startup/appspawn/modules/module_engine/include/ |
D | appspawn_msg.h | 100 char ownerId[0]; // app identifier id member
|
/base/startup/appspawn/interfaces/innerkits_new/include/ |
D | appspawn.h | 217 int AppSpawnReqMsgSetAppOwnerId(AppSpawnReqMsgHandle reqHandle, const char *ownerId);
|
/base/startup/appspawn/interfaces/innerkits_new/client/ |
D | appspawn_msg.c | 475 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/ |
D | appspawn_test_cmder.cpp | 281 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/ |
D | app_spawn_interface_test.cpp | 350 …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]);
|
D | app_spawn_client_test.cpp | 350 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/ |
D | appspawnclient_fuzzer.cpp | 233 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/ |
D | inner_event.h | 711 inline void SetOwnerId(std::string ownerId) in SetOwnerId() argument 713 ownerId_ = ownerId; in SetOwnerId()
|
/base/startup/appspawn/modules/common/ |
D | appspawn_common.c | 205 ret = SetXpmOwnerId(PROCESS_OWNERID_APP, ownerInfo->ownerId); in SetXpmConfig()
|
/base/startup/appspawn/standard/ |
D | appspawn_msgmgr.c | 396 …SPAWN_ONLY_EXPER(owner != NULL, APPSPAPWN_DUMP("App owner info: \"%{public}s\" ", owner->ownerId)); in DumpAppSpawnMsg()
|