/base/security/code_signature/interfaces/innerkits/code_sign_attr_utils/src/ |
H A D | code_sign_attr_utils.c | 45 static int DoSetXpmOwnerId(int fd, uint32_t idType, const char *ownerId) in DoSetXpmOwnerId() argument 55 if ((ownerId != NULL) && (strlen(ownerId) != 0)) { in DoSetXpmOwnerId() 56 if (memcpy_s(config.ownerId, sizeof(config.ownerId) - 1, ownerId, strlen(ownerId)) != EOK) { in DoSetXpmOwnerId() 57 LOG_ERROR("Memcpy ownerId failed, ownerId: %{public}s", ownerId); in DoSetXpmOwnerId() 67 InitXpm(int enableJitFort, uint32_t idType, const char *ownerId) InitXpm() argument 99 SetXpmOwnerId(uint32_t idType, const char *ownerId) SetXpmOwnerId() argument [all...] |
H A D | ownerid_utils.cpp | 39 uint32_t ConvertIdType(int idType, const char *ownerId) in ConvertIdType() argument 41 if (ownerId == nullptr) { in ConvertIdType() 48 std::string ownerIdStr(ownerId); in ConvertIdType()
|
/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/ |
H A D | code_sign_enable_multi_task.cpp | 86 int32_t CodeSignEnableMultiTask::ExecuteEnableCodeSignTask(const std::string &ownerId,
in ExecuteEnableCodeSignTask() argument 96 ExecuteEnableCodeSignTask(i, taskRet, ownerId, path, func);
in ExecuteEnableCodeSignTask() 130 const std::string &ownerId, const std::string &path, CallbackFunc &func)
in ExecuteEnableCodeSignTask() 132 auto enableCodeSignTask = [this, index, &ownerId, &path, &func, &taskRet]() {
in ExecuteEnableCodeSignTask() 145 int32_t ret = CheckOwnerId(path, ownerId,
in ExecuteEnableCodeSignTask() 165 int32_t CodeSignEnableMultiTask::CheckOwnerId(const std::string &path, const std::string &ownerId,
in CheckOwnerId() argument 168 if (ownerId.empty()) {
in CheckOwnerId() 178 ReportInvalidOwner(path, ownerId, "invalid");
in CheckOwnerId() 179 LOG_ERROR("get ownerId from signature failed, ret %{public}d", ret);
in CheckOwnerId() 180 } else if (retId != ownerId) {
in CheckOwnerId() 129 ExecuteEnableCodeSignTask(uint32_t &index, int32_t &taskRet, const std::string &ownerId, const std::string &path, CallbackFunc &func) ExecuteEnableCodeSignTask() argument [all...] |
H A D | code_sign_helper.cpp | 32 int32_t CodeSignHelper::ProcessMultiTask(const std::string &ownerId, const std::string &path, CallbackFunc &func)
in ProcessMultiTask() argument 43 return ExecuteMultiTask(ownerId, path, func);
in ProcessMultiTask() 66 int32_t CodeSignHelper::ExecuteMultiTask(const std::string &ownerId,
in ExecuteMultiTask() argument 69 return multiTask_.ExecuteEnableCodeSignTask(ownerId, path, func);
in ExecuteMultiTask()
|
H A D | code_sign_utils.cpp | 197 int32_t CodeSignUtils::EnforceCodeSignForAppWithOwnerId(const std::string &ownerId, const std::string &path,
215 int ret = ProcessCodeSignBlock(ownerId, path, type);
218 ret = ProcessCodeSignBlock(ownerId, path, type);
225 int32_t CodeSignUtils::ProcessCodeSignBlock(const std::string &ownerId, const std::string &path, FileType type)
237 ret = codeSignHelper.ProcessMultiTask(ownerId, path, EnableCodeSignForFile);
|
/base/security/code_signature/interfaces/innerkits/code_sign_attr_utils/include/ |
H A D | code_sign_attr_utils.h | 74 char ownerId[MAX_OWNERID_LEN]; member 77 int InitXpm(int enableJitFort, uint32_t idType, const char *ownerId); 79 int SetXpmOwnerId(uint32_t idType, const char *ownerId);
|
H A D | ownerid_utils.h | 23 uint32_t ConvertIdType(int idType, const char *ownerId);
|
/base/security/code_signature/interfaces/innerkits/code_sign_utils/include/ |
H A D | code_sign_enable_multi_task.h | 46 * @param ownerId app-identifier of the signature
51 int32_t ExecuteEnableCodeSignTask(const std::string &ownerId,
62 void ExecuteEnableCodeSignTask(uint32_t &index, int32_t &taskRet, const std::string &ownerId,
64 int32_t CheckOwnerId(const std::string &path, const std::string &ownerId,
|
H A D | code_sign_helper.h | 38 * @param ownerId string to abtain owner ID from the signature file
43 int32_t ProcessMultiTask(const std::string &ownerId, const std::string &path, CallbackFunc &func);
46 int32_t ExecuteMultiTask(const std::string &ownerId, const std::string &path, CallbackFunc &func);
|
H A D | code_sign_utils.h | 64 * @param ownerId app-identifier of the signature
70 int32_t EnforceCodeSignForAppWithOwnerId(const std::string &ownerId, const std::string &path,
127 int32_t ProcessCodeSignBlock(const std::string &ownerId, const std::string &path, FileType type);
|
/base/startup/appspawn/modules/common/ |
H A D | appspawn_common.c | 209 const char *ownerId = NULL; in SetXpmConfig() local 216 ownerId = ownerInfo->ownerId; in SetXpmConfig() 219 ownerId = ownerInfo->ownerId; in SetXpmConfig() 221 int ret = InitXpm(jitfortEnable, idType, ownerId); in SetXpmConfig()
|
/base/startup/appspawn/modules/module_engine/include/ |
H A D | appspawn_msg.h | 102 char ownerId[0]; // app identifier id member
|
/base/startup/appspawn/interfaces/innerkits/include/ |
H A D | appspawn.h | 233 * @param ownerId owner id, max length is 63 236 int AppSpawnReqMsgSetAppOwnerId(AppSpawnReqMsgHandle reqHandle, const char *ownerId);
|
/base/startup/appspawn/test/unittest/app_spawn_client_test/ |
H A D | app_spawn_client_test.cpp | 372 * @brief 测试消息构建及解析,ownerId cmd 388 const char *ownerId = "test 2222222222222222222222222222222222222222222222223451234567"; in HWTEST_F() local 389 ret = AppSpawnReqMsgSetAppOwnerId(reqHandle, ownerId); in HWTEST_F() 398 APPSPAWN_LOGV("owner->ownerId %{public}s", owner->ownerId); in HWTEST_F() 399 APPSPAWN_CHECK(strcmp(owner->ownerId, ownerId) == 0, break, "Invalid ownerId %{public}s", ownerId); in HWTEST_F()
|
H A D | app_spawn_interface_test.cpp | 350 const char *ownerId[] = {"FILE_ACCESS_MANAGER", name1.data(), name2.data(), name3.data(), "", nullptr}; in HWTEST_F() local 352 for (size_t j = 0; j < ARRAY_LENGTH(ownerId); j++) { in HWTEST_F() 354 ret = AppSpawnReqMsgSetAppOwnerId(inputHandle[i], ownerId[j]); in HWTEST_F()
|
/base/startup/appspawn/test/moduletest/ |
H A D | appspawn_test_cmder.cpp | 288 std::string ownerId = GetStringFromJsonObj(appInfoConfig, "owner-id"); in BuildMsgFromJson() local 289 if (!ownerId.empty()) { in BuildMsgFromJson() 290 ret = AppSpawnReqMsgSetAppOwnerId(reqHandle, ownerId.c_str()); in BuildMsgFromJson()
|
/base/startup/appspawn/interfaces/innerkits/client/ |
H A D | appspawn_msg.c | 505 int AppSpawnReqMsgSetAppOwnerId(AppSpawnReqMsgHandle reqHandle, const char *ownerId) in AppSpawnReqMsgSetAppOwnerId() argument 509 int ret = CheckInputString("TLV_OWNER_INFO", ownerId, APP_OWNER_ID_LEN); in AppSpawnReqMsgSetAppOwnerId() 513 data[0].data = (uint8_t *)ownerId; in AppSpawnReqMsgSetAppOwnerId() 514 data[0].dataLen = strlen(ownerId); in AppSpawnReqMsgSetAppOwnerId()
|
/base/notification/eventhandler/interfaces/inner_api/ |
H A D | inner_event.h | 719 * Set ownerId. 721 inline void SetOwnerId(std::string ownerId) in SetOwnerId() argument 723 ownerId_ = ownerId; in SetOwnerId() 727 * Get ownerId.
|
/base/startup/appspawn/test/fuzztest/appspawnclient_fuzzer/ |
H A 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/startup/appspawn/standard/ |
H A D | appspawn_msgmgr.c | 404 APPSPAWN_ONLY_EXPER(owner != NULL, APPSPAPWN_DUMP("App owner info: \"%{public}s\" ", owner->ownerId)); in DumpAppSpawnMsg()
|