Home
last modified time | relevance | path

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

/base/startup/init/test/unittest/param/
Dparam_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 …]
Dparamservice_unittest.cpp90 uint32_t labelIndex = 0; in TestAddSecurityLabel1() local
94 (void)FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel1()
95 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel1()
116 uint32_t labelIndex = 0; in TestAddSecurityLabel2() local
119 (void)FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel2()
120 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel2()
150 uint32_t labelIndex = 0; in TestAddSecurityLabel3() local
152 ParamTrieNode *paramNode = FindTrieNode(workspace, name, strlen(name), &labelIndex); in TestAddSecurityLabel3()
153 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(workspace, labelIndex); in TestAddSecurityLabel3()
174 uint32_t labelIndex = 0; in TestAddSecurityLabel4() local
[all …]
/base/startup/init/services/param/adapter/
Dparam_dac.c225 uint32_t labelIndex = 0; in CheckUserInGroup() local
228 (void)FindTrieNode(space, buffer, strlen(buffer), &labelIndex); in CheckUserInGroup()
229 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, labelIndex); in CheckUserInGroup()
230 …PARAM_CHECK(node != NULL, return DAC_RESULT_FORBIDED, "Can not get security label %d", labelIndex); in CheckUserInGroup()
246 uint32_t labelIndex = 0; in DacCheckParamPermission() local
250 (void)FindTrieNode(space, name, strlen(name), &labelIndex); in DacCheckParamPermission()
251 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, labelIndex); in DacCheckParamPermission()
252 …PARAM_CHECK(node != NULL, return DAC_RESULT_FORBIDED, "Can not get security label %d", labelIndex); in DacCheckParamPermission()
272 … PARAM_LOGW("Cfg label %d gid:%d uid:%d mode 0%o ", labelIndex, node->gid, node->uid, node->mode); in DacCheckParamPermission()
/base/startup/init/services/param/manager/
Dparam_manager.c136 current->dataIndex, current->labelIndex, current->length, current->key); in DumpTrieDataNodeTraversal()
145 if (current->labelIndex != 0 && verbose) { in DumpTrieDataNodeTraversal()
146 ParamSecurityNode *label = (ParamSecurityNode *)GetTrieNode(workSpace, current->labelIndex); in DumpTrieDataNodeTraversal()
239 uint32_t labelIndex = 0; in GetParamSecurityAuditData() local
243 FindTrieNode(space, name, strlen(name), &labelIndex); in GetParamSecurityAuditData()
244 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, labelIndex); in GetParamSecurityAuditData()
245 …PARAM_CHECK(node != NULL, return DAC_RESULT_FORBIDED, "Can not get security label %d", labelIndex); in GetParamSecurityAuditData()
/base/startup/init/services/param/base/
Dparam_trie.c86 node->labelIndex = 0; in AllocateParamTrieNode()
232 if (matchLabel != NULL && current->labelIndex != 0) { in FindSubTrie()
233 *matchLabel = current->labelIndex; in FindSubTrie()
261 *matchLabel = current->labelIndex; in FindTrieNode_()
282 } else if (matchLabel != NULL && current->labelIndex != 0) { in FindTrieNode_()
283 *matchLabel = current->labelIndex; in FindTrieNode_()
424 uint32_t labelIndex = 0; in GetParamNode() local
427 ParamTrieNode *entry = FindTrieNode(space, name, strlen(name), &labelIndex); in GetParamNode()
Dparam_comm.c157 uint32_t labelIndex = 0; in GetParamValueType() local
162 (void)FindTrieNode(space, name, strlen(name), &labelIndex); in GetParamValueType()
163 ParamSecurityNode *securityNode = (ParamSecurityNode *)GetTrieNode(space, labelIndex); in GetParamValueType()
366 uint32_t offset = node->labelIndex; in AddSecurityLabel()
367 if (node->labelIndex == 0) { // can not support update for label in AddSecurityLabel()
370 SaveIndex(&node->labelIndex, offset); in AddSecurityLabel()
373 ParamSecurityNode *label = (ParamSecurityNode *)GetTrieNode(workSpace, node->labelIndex); in AddSecurityLabel()
/base/startup/init/services/param/include/
Dparam_trie.h42 uint32_t labelIndex; member