/base/startup/bootstrap_lite/services/source/ |
H A D | core_main.h | 86 #pragma section = SYS_NAME(service, 0)
87 #pragma section = SYS_NAME(service, 1)
88 #pragma section = SYS_NAME(service, 2)
89 #pragma section = SYS_NAME(service, 3)
90 #pragma section = SYS_NAME(service, 4)
91 #pragma section = SYS_NAME(feature, 0)
92 #pragma section = SYS_NAME(feature, 1)
93 #pragma section = SYS_NAME(feature, 2)
94 #pragma section = SYS_NAME(feature, 3)
95 #pragma section [all...] |
H A D | bootstrap_service.h | 84 #pragma section = APP_NAME(service, 0)
85 #pragma section = APP_NAME(service, 1)
86 #pragma section = APP_NAME(service, 2)
87 #pragma section = APP_NAME(service, 3)
88 #pragma section = APP_NAME(service, 4)
89 #pragma section = APP_NAME(feature, 0)
90 #pragma section = APP_NAME(feature, 1)
91 #pragma section = APP_NAME(feature, 2)
92 #pragma section = APP_NAME(feature, 3)
93 #pragma section [all...] |
/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_manager.c | 103 PathMountNode *GetPathMountNode(const SandboxSection *section, int type, const char *source, const char *target) in GetPathMountNode() argument 105 APPSPAWN_CHECK_ONLY_EXPER(section != NULL, return NULL); in GetPathMountNode() 111 ListNode *node = OH_ListFind(§ion->front, (void *)&pathNode, PathMountNodeCompare); in GetPathMountNode() 118 SymbolLinkNode *GetSymbolLinkNode(const SandboxSection *section, const char *target, const char *linkName) in GetSymbolLinkNode() argument 120 APPSPAWN_CHECK_ONLY_EXPER(section != NULL, return NULL); in GetSymbolLinkNode() 126 ListNode *node = OH_ListFind(§ion->front, (void *)&linkNode, SymbolLinkNodeCompare); in GetSymbolLinkNode() 153 SandboxMountNode *GetFirstSandboxMountNode(const SandboxSection *section) in GetFirstSandboxMountNode() argument 155 if (section == NULL || ListEmpty(section->front)) { in GetFirstSandboxMountNode() 158 return (SandboxMountNode *)ListEntry(section in GetFirstSandboxMountNode() 194 InitSandboxSection(SandboxSection *section, int type) InitSandboxSection() argument 208 ClearSandboxSection(SandboxSection *section) ClearSandboxSection() argument 256 DumpSandboxSection(const SandboxSection *section) DumpSandboxSection() argument 282 SandboxSection *section = (SandboxSection *)calloc(1, dataLen); CreateSandboxSection() local 325 DeleteSandboxSection(SandboxSection *section) DeleteSandboxSection() argument 396 SandboxSection *section = (SandboxSection *)node; DumpSandboxSectionNode() local [all...] |
H A D | sandbox_load.c | 205 static PathMountNode *DecodeMountPathConfig(const SandboxSection *section, const cJSON *config, uint32_t type) in DecodeMountPathConfig() argument 213 PathMountNode *tmp = GetPathMountNode(section, type, srcPath, dstPath); in DecodeMountPathConfig() 246 const cJSON *mountConfigs, SandboxSection *section, uint32_t type) in ParseMountPathsConfig() 256 PathMountNode *sandboxNode = DecodeMountPathConfig(section, mntJson, type); in ParseMountPathsConfig() 258 AddSandboxMountNode(&sandboxNode->sandboxNode, section); in ParseMountPathsConfig() 263 static SymbolLinkNode *DecodeSymbolLinksConfig(const SandboxSection *section, const cJSON *config) in DecodeSymbolLinksConfig() argument 271 SymbolLinkNode *tmp = GetSymbolLinkNode(section, target, linkName); in DecodeSymbolLinksConfig() 292 SandboxSection *section) in ParseSymbolLinksConfig() 301 SymbolLinkNode *node = DecodeSymbolLinksConfig(section, symConfig); in ParseSymbolLinksConfig() 303 AddSandboxMountNode(&node->sandboxNode, section); in ParseSymbolLinksConfig() 245 ParseMountPathsConfig(AppSpawnSandboxCfg *sandbox, const cJSON *mountConfigs, SandboxSection *section, uint32_t type) ParseMountPathsConfig() argument 291 ParseSymbolLinksConfig(AppSpawnSandboxCfg *sandbox, const cJSON *symbolLinkConfigs, SandboxSection *section) ParseSymbolLinksConfig() argument 308 ParseGidTableConfig(AppSpawnSandboxCfg *sandbox, const cJSON *configs, SandboxSection *section) ParseGidTableConfig() argument 341 ParseMountGroupsConfig(AppSpawnSandboxCfg *sandbox, const cJSON *groupConfig, SandboxSection *section) ParseMountGroupsConfig() argument 400 ParseBaseConfig(AppSpawnSandboxCfg *sandbox, SandboxSection *section, const cJSON *configs) ParseBaseConfig() argument 630 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, config->string); ParseAppSandboxConfig() local [all...] |
H A D | appspawn_sandbox.c | 206 context->sandboxShared = packageNode->section.sandboxShared; in InitSandboxContext() 222 context->sandboxShared = permissionNode->section.sandboxShared; in InitSandboxContext() 238 static VarExtraData *GetVarExtraData(const SandboxContext *context, const SandboxSection *section) in GetVarExtraData() argument 242 extraData.sandboxTag = GetSectionType(section); in GetVarExtraData() 243 if (GetSectionType(section) == SANDBOX_TAG_NAME_GROUP) { in GetVarExtraData() 244 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)section; in GetVarExtraData() 266 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation) in CheckSandboxMountNode() 269 APPSPAWN_LOGW("Invalid mount config section %{public}s", section->name); in CheckSandboxMountNode() 278 APPSPAWN_LOGW("Invalid mount source %{public}s section in CheckSandboxMountNode() 265 CheckSandboxMountNode(const SandboxContext *context, const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation) CheckSandboxMountNode() argument 436 DoSandboxPathNodeMount(const SandboxContext *context, const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation) DoSandboxPathNodeMount() argument 483 DoSandboxPathSymLink(const SandboxContext *context, const SandboxSection *section, const SymbolLinkNode *sandboxNode) DoSandboxPathSymLink() argument 514 DoSandboxNodeMount(const SandboxContext *context, const SandboxSection *section, uint32_t operation) DoSandboxNodeMount() argument 709 MountSandboxConfig(const SandboxContext *context, const AppSpawnSandboxCfg *sandbox, const SandboxSection *section, uint32_t op) MountSandboxConfig() argument 981 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, name); UnmountSandboxConfigs() local 1049 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const"); StagedMountSystemConst() local 1095 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const"); SetSystemConstDepGroups() local 1114 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "app-variable"); SetAppVariableDepGroups() local 1262 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "app-variable"); SetAppVariableConfig() local [all...] |
H A D | appspawn_sandbox.h | 155 SandboxSection section; member 159 SandboxSection section; member 164 SandboxSection section; member 172 SandboxSection section; member 187 // for comm section 246 __attribute__((always_inline)) inline uint32_t GetSectionType(const SandboxSection *section) in GetSectionType() argument 248 return section != NULL ? section->sandboxNode.type : SANDBOX_TAG_INVALID; in GetSectionType() 256 SandboxMountNode *GetFirstSandboxMountNode(const SandboxSection *section); 258 void AddSandboxMountNode(SandboxMountNode *node, SandboxSection *section); [all...] |
H A D | appspawn_permission.c | 37 return strcmp(permissionNode->section.name, (char *)data); in PermissionNodeCompareName() 48 return strcmp(permissionNode->section.name, newPermissionNode->section.name); in PermissionNodeCompareProc() 66 OH_ListAddWithOrder(&queue->front, &node->section.sandboxNode.node, PermissionNodeCompareProc); in AddSandboxPermissionNode() 113 permissionNode->permissionIndex, permissionNode->section.name); in PermissionRenumber()
|
H A D | sandbox_utils.h | 80 nlohmann::json &appConfig, const char *typeName, const std::string §ion = "app-base"); 108 const char* permissionName, const std::string §ion); 120 const std::string §ion, std::string sandboxRoot); 121 static void GetSandboxMountConfig(const AppSpawningCtx *appProperty, const std::string §ion,
|
H A D | sandbox_utils.cpp | 750 void SandboxUtils::GetSandboxMountConfig(const AppSpawningCtx *appProperty, const std::string §ion, in GetSandboxMountConfig() argument 753 if (section.compare(g_permissionPrefix) == 0) { in GetSandboxMountConfig() 764 const std::string §ion, std::string sandboxRoot) in GetSandboxPath() 768 if (section.compare(g_permissionPrefix) == 0) { in GetSandboxPath() 788 nlohmann::json &appConfig, const char *typeName, const std::string §ion) in DoAllMntPointsMount() 793 section.c_str(), bundleName.c_str()); in DoAllMntPointsMount() 809 std::string sandboxPath = GetSandboxPath(appProperty, mntPoint, section, sandboxRoot); in DoAllMntPointsMount() 811 GetSandboxMountConfig(appProperty, section, mntPoint, mountConfig); in DoAllMntPointsMount() 825 APPSPAWN_LOGE("DoAppSandboxMountOnce section %{public}s failed, %{public}s", in DoAllMntPointsMount() 826 section in DoAllMntPointsMount() 763 GetSandboxPath(const AppSpawningCtx *appProperty, nlohmann::json &mntPoint, const std::string §ion, std::string sandboxRoot) GetSandboxPath() argument 787 DoAllMntPointsMount(const AppSpawningCtx *appProperty, nlohmann::json &appConfig, const char *typeName, const std::string §ion) DoAllMntPointsMount() argument 837 DoAddGid(AppSpawningCtx *appProperty, nlohmann::json &appConfig, const char* permissionName, const std::string §ion) DoAddGid() argument [all...] |
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_sandboxmgr_test.cpp | 163 SandboxSection *section = CreateSandboxSection(name, len, type); in HWTEST_F() 164 EXPECT_EQ(section != nullptr, nameIndex == 0 && result[lenIndex]); in HWTEST_F() 165 if (section) { in HWTEST_F() 166 EXPECT_EQ(GetSectionType(section), type); in HWTEST_F() 167 free(section->name); in HWTEST_F() 168 free(section); in HWTEST_F() 204 SandboxSection *section = CreateSandboxSection(inputName[i], inputDataLen[j], 0); in HWTEST_F() local 205 EXPECT_EQ(section == nullptr, 1); in HWTEST_F() 206 section = CreateSandboxSection(inputName[i], inputDataLen[j], 1); in HWTEST_F() 207 EXPECT_EQ(section in HWTEST_F() 227 SandboxSection *section = CreateSandboxSection("system-const", sizeof(SandboxSection), SANDBOX_TAG_SYSTEM_CONST); HWTEST_F() local 257 SandboxSection *section = GetSandboxSection(nullptr, "system-const"); HWTEST_F() local 295 SandboxSection *section = CreateSandboxSection("system-const", sizeof(SandboxSection), SANDBOX_TAG_SYSTEM_CONST); HWTEST_F() local 330 SandboxSection *section = CreateSandboxSection("system-const", sizeof(SandboxSection), SANDBOX_TAG_SYSTEM_CONST); HWTEST_F() local 361 SandboxSection *section = CreateSandboxSection("system-const", sizeof(SandboxSection), SANDBOX_TAG_SYSTEM_CONST); HWTEST_F() local 409 SandboxSection *section = CreateSandboxSection("system-const", sizeof(SandboxSection), SANDBOX_TAG_SYSTEM_CONST); HWTEST_F() local [all...] |
H A D | app_spawn_sandbox_new_test.cpp | 274 static inline SandboxMountNode *GetFirstSandboxMountPathNode(const SandboxSection *section) in GetFirstSandboxMountPathNode() argument 276 APPSPAWN_CHECK_ONLY_EXPER(section != nullptr, return nullptr); in GetFirstSandboxMountPathNode() 277 ListNode *node = section->front.next; in GetFirstSandboxMountPathNode() 278 if (node == §ion->front) { in GetFirstSandboxMountPathNode() 284 static inline SandboxMountNode *GetNextSandboxMountPathNode(const SandboxSection *section, SandboxMountNode *pathNode) in GetNextSandboxMountPathNode() argument 286 APPSPAWN_CHECK_ONLY_EXPER(section != nullptr && pathNode != nullptr, return nullptr); in GetNextSandboxMountPathNode() 287 if (pathNode->node.next == §ion->front) { in GetNextSandboxMountPathNode() 691 APPSPAWN_CHECK(node != nullptr && strcmp(node->section.name, permission) == 0, in HWTEST_F() 695 APPSPAWN_CHECK(node2 != nullptr && strcmp(node->section.name, node2->section in HWTEST_F() 946 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const"); HWTEST_F() local 1285 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "app-variable"); HWTEST_F() local 2280 const SandboxSection section = {node, front, name, 16, 16, nullptr, 1, 1, nullptr}; HWTEST_F() local 2300 const SandboxSection section = {node, front, name, 16, 16, nullptr, 1, 1, nullptr}; HWTEST_F() local [all...] |
H A D | app_spawn_sandbox_new_mount_test.cpp | 692 SandboxSection section = {};
in HWTEST_F() local 699 ret = ParseGidTableConfig(nullptr, testCfg, §ion);
in HWTEST_F() 703 section.gidTable = (gid_t *)malloc(sizeof(gid_t) * 10);
in HWTEST_F() 704 ASSERT_EQ(section.gidTable != nullptr, 1);
in HWTEST_F() 705 ret = ParseGidTableConfig(nullptr, testCfg, §ion);
in HWTEST_F() 707 if (section.gidTable != nullptr) {
in HWTEST_F() 708 free(section.gidTable);
in HWTEST_F()
|
H A D | app_spawn_sandbox_test.cpp | 207 GTEST_LOG_(INFO) << "SetAppSandboxProperty section 2" << std::endl; in HWTEST_F() 291 GTEST_LOG_(INFO) << "SetAppSandboxProperty section 2" << std::endl; in HWTEST_F() 333 GTEST_LOG_(INFO) << "SetAppSandboxProperty section 2" << std::endl; in HWTEST_F() 1254 * @tc.desc: get sandbox mount config when section is common. 1278 std::string section = "common"; in HWTEST_F() local 1280 OHOS::AppSpawn::SandboxUtils::GetSandboxMountConfig(appProperty, section, j_secondConfig, mountConfig); in HWTEST_F() 1288 * @tc.desc: get sandbox mount config when section is permission. 1312 std::string section = "permission"; in HWTEST_F() local 1314 OHOS::AppSpawn::SandboxUtils::GetSandboxMountConfig(appProperty, section, j_secondConfig, mountConfig); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/ |
H A D | unique_stack_table.cpp | 121 node.section.pc = thisPc; in PutPcInSlot() 122 node.section.prevIdx = prevIdx; in PutPcInSlot() 123 node.section.inKernel = !!(thisPc & PC_IN_KERNEL); in PutPcInSlot() 175 stackId->section.id = prev; in PutPcsInTable() 176 stackId->section.nr = static_cast<uint64_t>(nr); in PutPcsInTable() 216 uint64_t nr = stackId.section.nr; in GetPcsByStackId() 217 uint64_t tailIdx = stackId.section.id; in GetPcsByStackId() 222 node->section.inKernel ? (node->section.pc | KERNEL_PREFIX) : node->section in GetPcsByStackId() [all...] |
/base/startup/appspawn/test/mock/ |
H A D | app_spawn_stub.h | 80 const cJSON *mountConfigs, SandboxSection *section, uint32_t type);
82 SandboxSection *section);
83 int ParseGidTableConfig(AppSpawnSandboxCfg *sandbox, const cJSON *configs, SandboxSection *section);
95 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation);
|
/base/startup/init/ueventd/ |
H A D | ueventd_read_cfg.c | 165 static SECTION GetSection(const char *section) in GetSection() argument 167 INIT_CHECK_RETURN_VALUE(!INVALIDSTRING(section), SECTION_INVALID); in GetSection() 168 if (STRINGEQUAL(section, "device")) { in GetSection() 170 } else if (STRINGEQUAL(section, "sysfs")) { in GetSection() 172 } else if (STRINGEQUAL(section, "firmware")) { in GetSection() 188 char *section = NULL; in ParseUeventConfig() local 201 section = p; in ParseUeventConfig() 202 INIT_LOGV("section is [%s]", section); in ParseUeventConfig() 203 if ((type = GetSection(section)) in ParseUeventConfig() [all...] |
/base/startup/appspawn/interfaces/innerkits/permission/ |
H A D | appspawn_mount_permission.h | 48 #define PERMISSION_NAME(node) (node) == NULL ? NULL : (node)->section.name
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/include/ |
H A D | unique_stack_table.h | 51 } section; member 71 } section; member
|
/base/startup/init/services/modules/seccomp/scripts/tools/ |
H A D | collect_elf_syscall.py | 168 def create_disassemble_file(elf_path, locate_path, section):
169 cmd = '{} -d --section={} {}'.format(get_obj_dump_path(), section, elf_path)
170 return create_needed_file(elf_path, locate_path, cmd, section + '.asm')
|
/base/hiviewdfx/hidumper/frameworks/native/include/util/ |
H A D | config_utils.h | 32 // Used for get section names 72 // Used for get section name from group name 80 static void SetSection(std::vector<std::shared_ptr<DumpCfg>> &dumpCfgs, const std::string §ion, int nest = 0);
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
H A D | config_utils.cpp | 794 // add section & add config to result in GetGroup() 828 void ConfigUtils::SetSection(std::vector<std::shared_ptr<DumpCfg>> &dumpCfgs, const std::string §ion, int nest) in SetSection() argument 839 dumpCfg->section_ = section; in SetSection() 844 SetSection(dumpCfg->childs_, section, nest + 1); in SetSection()
|