/ohos5.0/base/startup/init/services/param/base/ |
H A D | param_base.c | 281 labelIndex = 0; in AddWorkSpace() 285 if (paramSpace->workSpace[labelIndex] != NULL) { in AddWorkSpace() 294 workSpace->spaceIndex = labelIndex; in AddWorkSpace() 300 paramSpace->workSpace[labelIndex] = workSpace; in AddWorkSpace() 310 paramSpace->workSpace[labelIndex]->spaceSize = workSpaceSize->spaceSize[labelIndex]; in AddWorkSpace() 317 if (paramSpace->maxSpaceCount > labelIndex) { in CheckAndExtendSpace() 320 if (labelIndex >= PARAM_MAX_SELINUX_LABEL) { in CheckAndExtendSpace() 387 ParamLabelIndex labelIndex = {0}; in ReadParamWithCheck() local 394 labelIndex.selinuxLabelIndex = labelIndex.workspace->spaceIndex; in ReadParamWithCheck() 402 *workspace = labelIndex.workspace; in ReadParamWithCheck() [all …]
|
H A D | param_comm.c | 30 …uint32_t labelIndex = (uint32_t)paramSpace->selinuxSpace.getParamLabelIndex(name) + WORKSPACE_INDE… in GetWorkSpaceByName() local 31 if (labelIndex < paramSpace->maxSpaceCount) { in GetWorkSpaceByName() 32 return paramSpace->workSpace[labelIndex]; in GetWorkSpaceByName() 40 INIT_LOCAL_API WorkSpace *GetWorkSpace(uint32_t labelIndex) in GetWorkSpace() argument 47 if (labelIndex == 0) { in GetWorkSpace() 51 if (labelIndex < paramSpace->maxSpaceCount) { in GetWorkSpace() 52 workSpace = paramSpace->workSpace[labelIndex]; in GetWorkSpace()
|
H A D | param_include.h | 52 *matchLabel = (subTrie->labelIndex != 0) ? subTrie->labelIndex : *matchLabel; in FindSubTrie() 77 *matchLabel = current->labelIndex; in FindTrieNode_() 94 } else if (current->labelIndex != 0) { in FindTrieNode_() 95 *matchLabel = current->labelIndex; in FindTrieNode_()
|
H A D | param_trie.c | 86 node->labelIndex = 0; in AllocateParamTrieNode() 349 uint32_t labelIndex = 0; in GetParamNode() local 351 ParamTrieNode *entry = FindTrieNode(space, name, strlen(name), &labelIndex); in GetParamNode() 390 uint32_t offset = node->labelIndex; in AddSecurityLabel() 391 if (node->labelIndex == 0) { // can not support update for label in AddSecurityLabel() 394 SaveIndex(&node->labelIndex, offset); in AddSecurityLabel() 396 ParamSecurityNode *label = (ParamSecurityNode *)GetTrieNode(workSpace, node->labelIndex); in AddSecurityLabel()
|
/ohos5.0/base/startup/init/services/param/adapter/ |
H A D | param_selinux.c | 135 uint32_t labelIndex = paramNode->index + WORKSPACE_INDEX_BASE; in HandleSelinuxLabelForOpen() local 136 int ret = OpenWorkSpace(labelIndex, readOnly); in HandleSelinuxLabelForOpen() 149 uint32_t labelIndex = paramNode->index + WORKSPACE_INDEX_BASE; in HandleSelinuxLabelForInit() local 150 int ret = AddWorkSpace(paramNode->paraContext, labelIndex, readOnly, 0); in HandleSelinuxLabelForInit() 155 if (paramSpace->maxLabelIndex < labelIndex) { in HandleSelinuxLabelForInit() 156 paramSpace->maxLabelIndex = labelIndex; in HandleSelinuxLabelForInit() 186 uint32_t labelIndex = paramNode->index + WORKSPACE_INDEX_BASE; in HandleSelinuxLabelForPermission() local 187 if (labelIndex == WORKSPACE_INDEX_BASE) { in HandleSelinuxLabelForPermission() 203 paramNode->paraName, labelIndex, node->selinuxIndex, index, paramNode->paraContext); in HandleSelinuxLabelForPermission() 209 auditData.selinuxIndex = labelIndex; in HandleSelinuxLabelForPermission() [all …]
|
/ohos5.0/base/startup/init/services/param/manager/ |
H A D | param_manager.c | 143 if (current->labelIndex == 0) { in DumpTrieDataNodeTraversal() 273 uint32_t labelIndex = 0; in GetParamSecurityAuditData() local 548 uint32_t labelIndex = 0; in GetParamValueType() local 615 uint32_t labelIndex = 0; in ReadParamName() local 618 WorkSpace *workSpace = GetWorkSpace(labelIndex); in ReadParamName() 677 ParamLabelIndex labelIndex = {0}; in CheckParamPermission_() local 680 labelIndex.workspace = GetWorkSpaceByName(name); in CheckParamPermission_() 682 labelIndex.selinuxLabelIndex = labelIndex.workspace->spaceIndex; in CheckParamPermission_() 686 … "Forbid to access %s label %u %u", name, labelIndex.dacLabelIndex, labelIndex.selinuxLabelIndex); in CheckParamPermission_() 687 *workspace = labelIndex.workspace; in CheckParamPermission_() [all …]
|
/ohos5.0/base/startup/init/test/unittest/param/ |
H A D | paramservice_unittest.cpp | 86 uint32_t labelIndex = 0; in TestAddSecurityLabel1() local 90 (void)FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel1() 91 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel1() 112 uint32_t labelIndex = 0; in TestAddSecurityLabel2() local 115 (void)FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel2() 116 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel2() 146 uint32_t labelIndex = 0; in TestAddSecurityLabel3() local 148 ParamTrieNode *paramNode = FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel3() 149 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel3() 170 uint32_t labelIndex = 0; in TestAddSecurityLabel4() local [all …]
|
H A D | param_stub.cpp | 535 int TestCheckParamPermission(const ParamLabelIndex *labelIndex, in TestCheckParamPermission() argument 743 static ParamLabelIndex labelIndex = {0}; in TestGetParamLabelIndex() local 747 return &labelIndex; in TestGetParamLabelIndex() 751 return &labelIndex; in TestGetParamLabelIndex() 755 return &labelIndex; in TestGetParamLabelIndex() 758 labelIndex.workspace = paramWorkspace->workSpace[index]; in TestGetParamLabelIndex() 759 PARAM_CHECK(labelIndex.workspace != nullptr, return nullptr, "Invalid workSpace"); in TestGetParamLabelIndex() 760 labelIndex.selinuxLabelIndex = labelIndex.workspace->spaceIndex; in TestGetParamLabelIndex() 761 (void)FindTrieNode(paramWorkspace->workSpace[0], name, strlen(name), &labelIndex.dacLabelIndex); in TestGetParamLabelIndex() 762 return &labelIndex; in TestGetParamLabelIndex()
|
H A D | param_unittest.cpp | 84 uint32_t labelIndex = 0; in TestAddSecurityLabel1() local 88 (void)FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel1() 89 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel1() 110 uint32_t labelIndex = 0; in TestAddSecurityLabel2() local 113 (void)FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel2() 114 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel2() 144 uint32_t labelIndex = 0; in TestAddSecurityLabel3() local 146 ParamTrieNode *paramNode = FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel3() 147 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel3() 171 uint32_t labelIndex = 0; in TestAddSecurityLabel4() local [all …]
|
H A D | param_stub.h | 70 int TestCheckParamPermission(const ParamLabelIndex *labelIndex,
|
/ohos5.0/base/startup/init/services/param/include/ |
H A D | param_security.h | 107 int (*securityCheckParamPermission)(const ParamLabelIndex *labelIndex, 136 STATIC_INLINE int DacCheckParamPermission(const ParamLabelIndex *labelIndex, 138 STATIC_INLINE int SelinuxCheckParamPermission(const ParamLabelIndex *labelIndex,
|
H A D | param_manager.h | 79 int (*checkParamPermission)(const ParamLabelIndex *labelIndex, 124 INIT_LOCAL_API int AddWorkSpace(const char *name, uint32_t labelIndex, int onlyRead, uint32_t space… 128 INIT_LOCAL_API WorkSpace *GetWorkSpace(uint32_t labelIndex);
|
H A D | param_common.h | 58 uint32_t labelIndex; member
|
/ohos5.0/base/startup/init/services/param/liteos/ |
H A D | param_litedac.c | 55 static int LiteDacCheckParamPermission(const ParamLabelIndex *labelIndex, in LiteDacCheckParamPermission() argument 58 UNUSED(labelIndex); in LiteDacCheckParamPermission()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_relational_ver_p2p_sync_test.cpp | 660 SecurityOption SelectSecurityOption(int &labelIndex, int &flagIndex, in SelectSecurityOption() argument 664 …if (labelIndex >= static_cast<int>(labelList.size()) || flagIndex >= static_cast<int>(flagList.siz… in SelectSecurityOption() 667 option.securityLabel = labelList[labelIndex]; in SelectSecurityOption() 669 labelIndex++; in SelectSecurityOption() 670 if (labelIndex >= static_cast<int>(labelList.size())) { in SelectSecurityOption() 671 labelIndex = 0; in SelectSecurityOption()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-ability.md | 15 | applicationInfo | ApplicationInfo | readonly labelIndex: numb…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-ability.md | 15 | applicationInfo | ApplicationInfo | readonly labelIndex: numb…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202211/ |
H A D | js-apidiff-bundle.md | 90 |删除|模块名:applicationInfo<br>类名:ApplicationInfo<br>方法名 or 属性名:labelIndex|NA|applicationInfo.d.ts|
|
/ohos5.0/docs/en/release-notes/api-diff/monthly-202211/ |
H A D | js-apidiff-bundle.md | 90 …cationInfo<br>Class name: ApplicationInfo<br>Method or attribute name: labelIndex|NA|applicationIn…
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.2/ |
H A D | changelog-bundlemanager.md | 225 | labelIndex | labelId | number |
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-bundle.md | 296 |删除|模块名:applicationInfo<br>类名:ApplicationInfo<br>方法名 or 属性名:labelIndex|NA|applicationInfo.d.ts|
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.2/ |
H A D | changelog-bundlemanager.md | 230 | labelIndex | labelId | number |
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-bundle.md | 296 …cationInfo<br>Class name: ApplicationInfo<br>Method or attribute name: labelIndex|NA|applicationIn…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-bundle.md | 577 … string;<br>新版本信息:9<br>代替接口: ohos.bundle.bundleManager.ApplicationInfo.labelIndex|applicationInfo.…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-bundle.md | 577 …ersion: 9<br>Substitute API: ohos.bundle.bundleManager.ApplicationInfo.labelIndex|applicationInfo.…
|