Lines Matching refs:labelIndex
134 current->dataIndex, current->labelIndex, current->length, current->key); in DumpTrieDataNodeTraversal()
143 if (current->labelIndex == 0) { in DumpTrieDataNodeTraversal()
146 ParamSecurityNode *label = (ParamSecurityNode *)GetTrieNode(workSpace, current->labelIndex); in DumpTrieDataNodeTraversal()
273 uint32_t labelIndex = 0; in GetParamSecurityAuditData() local
277 FindTrieNode(space, name, strlen(name), &labelIndex); in GetParamSecurityAuditData()
278 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, labelIndex); in GetParamSecurityAuditData()
279 …PARAM_CHECK(node != NULL, return DAC_RESULT_FORBIDED, "Can not get security label %d", labelIndex); in GetParamSecurityAuditData()
548 uint32_t labelIndex = 0; in GetParamValueType() local
553 (void)FindTrieNode(space, name, strlen(name), &labelIndex); in GetParamValueType()
554 ParamSecurityNode *securityNode = (ParamSecurityNode *)GetTrieNode(space, labelIndex); in GetParamValueType()
615 uint32_t labelIndex = 0; in ReadParamName() local
617 PARAM_GET_HANDLE_INFO(handle, labelIndex, index); in ReadParamName()
618 WorkSpace *workSpace = GetWorkSpace(labelIndex); in ReadParamName()
677 ParamLabelIndex labelIndex = {0}; in CheckParamPermission_() local
679 *node = FindTrieNode(dacSpace, name, strlen(name), &labelIndex.dacLabelIndex); in CheckParamPermission_()
680 labelIndex.workspace = GetWorkSpaceByName(name); in CheckParamPermission_()
681 …PARAM_CHECK(labelIndex.workspace != NULL, return DAC_RESULT_FORBIDED, "Invalid workSpace for %s", … in CheckParamPermission_()
682 labelIndex.selinuxLabelIndex = labelIndex.workspace->spaceIndex; in CheckParamPermission_()
684 int ret = paramSpace->checkParamPermission(&labelIndex, srcLabel, name, mode); in CheckParamPermission_()
686 … "Forbid to access %s label %u %u", name, labelIndex.dacLabelIndex, labelIndex.selinuxLabelIndex); in CheckParamPermission_()
687 *workspace = labelIndex.workspace; in CheckParamPermission_()
701 uint32_t labelIndex = 0; in GetTrieNodeByHandle() local
703 PARAM_GET_HANDLE_INFO(handle, labelIndex, index); in GetTrieNodeByHandle()
704 WorkSpace *workSpace = GetWorkSpace(labelIndex); in GetTrieNodeByHandle()