Home
last modified time | relevance | path

Searched refs:labelIndex (Results 1 – 25 of 25) sorted by relevance

/ohos5.0/base/startup/init/services/param/base/
H A Dparam_base.c281 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 Dparam_comm.c30 …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 Dparam_include.h52 *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 Dparam_trie.c86 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 Dparam_selinux.c135 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 Dparam_manager.c143 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 Dparamservice_unittest.cpp86 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 Dparam_stub.cpp535 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 Dparam_unittest.cpp84 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 Dparam_stub.h70 int TestCheckParamPermission(const ParamLabelIndex *labelIndex,
/ohos5.0/base/startup/init/services/param/include/
H A Dparam_security.h107 int (*securityCheckParamPermission)(const ParamLabelIndex *labelIndex,
136 STATIC_INLINE int DacCheckParamPermission(const ParamLabelIndex *labelIndex,
138 STATIC_INLINE int SelinuxCheckParamPermission(const ParamLabelIndex *labelIndex,
H A Dparam_manager.h79 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 Dparam_common.h58 uint32_t labelIndex; member
/ohos5.0/base/startup/init/services/param/liteos/
H A Dparam_litedac.c55 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 Ddistributeddb_relational_ver_p2p_sync_test.cpp660 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 Djs-apidiff-ability.md15 | applicationInfo | ApplicationInfo | readonly labelIndex: numb…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta3/
H A Djs-apidiff-ability.md15 | applicationInfo | ApplicationInfo | readonly labelIndex: numb…
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202211/
H A Djs-apidiff-bundle.md90 |删除|模块名:applicationInfo<br>类名:ApplicationInfo<br>方法名 or 属性名:labelIndex|NA|applicationInfo.d.ts|
/ohos5.0/docs/en/release-notes/api-diff/monthly-202211/
H A Djs-apidiff-bundle.md90 …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 Dchangelog-bundlemanager.md225 | labelIndex | labelId | number |
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-bundle.md296 |删除|模块名:applicationInfo<br>类名:ApplicationInfo<br>方法名 or 属性名:labelIndex|NA|applicationInfo.d.ts|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.2/
H A Dchangelog-bundlemanager.md230 | labelIndex | labelId | number |
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta4/
H A Djs-apidiff-bundle.md296 …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 Djs-apidiff-bundle.md577 … string;<br>新版本信息:9<br>代替接口: ohos.bundle.bundleManager.ApplicationInfo.labelIndex|applicationInfo.…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-bundle.md577 …ersion: 9<br>Substitute API: ohos.bundle.bundleManager.ApplicationInfo.labelIndex|applicationInfo.…