Lines Matching refs:workspace

38     WorkSpace *workspace = GetWorkSpaceByName(name);

39 PARAM_CHECK(workspace != NULL, return NULL, "Failed to get workspace %s", name);
42 ParamTrieNode *node = FindTrieNode(workspace, name, nameLength, NULL);
46 ParamNode *param = (ParamNode *)GetTrieNode(workspace, node->dataIndex);
218 // show workspace size
226 PARAM_DUMP("\t workspace %u size : %u\n", i, spaceSize->spaceSize[i]);
615 PARAM_WORKSPACE_CHECK(paramSpace, return -1, "Param workspace has not init.");
672 static int CheckParamPermission_(WorkSpace **workspace, ParamTrieNode **node,
682 labelIndex.workspace = GetWorkSpaceByName(name);
683 PARAM_CHECK(labelIndex.workspace != NULL, return DAC_RESULT_FORBIDED, "Invalid workSpace for %s", name);
684 labelIndex.selinuxLabelIndex = labelIndex.workspace->spaceIndex;
689 *workspace = labelIndex.workspace;
696 WorkSpace *workspace = NULL;
697 return CheckParamPermission_(&workspace, &entry, srcLabel, name, mode);
736 WorkSpace *workspace = NULL;
737 int ret = CheckParamPermission_(&workspace, &node, GetParamSecurityLabel(), name, DAC_READ);
743 // search from real workspace
744 node = FindTrieNode(workspace, name, strlen(name), NULL);
749 ret = ReadParamValue((ParamNode *)GetTrieNode(workspace, node->dataIndex), value, len);
758 PARAM_WORKSPACE_CHECK(GetParamWorkSpace(), return PARAM_WORKSPACE_NOT_INIT, "Param workspace has not init.");
762 WorkSpace *workspace = NULL;
763 int ret = CheckParamPermission_(&workspace, &entry, GetParamSecurityLabel(), name, DAC_READ);
766 // search from real workspace
767 entry = FindTrieNode(workspace, name, strlen(name), NULL);
770 *handle = PARAM_HANDLE(workspace, entry->dataIndex);
780 PARAM_WORKSPACE_CHECK(GetParamWorkSpace(), return -1, "Param workspace has not init.");
793 PARAM_WORKSPACE_CHECK(GetParamWorkSpace(), return -1, "Param workspace has not init.");
803 PARAM_WORKSPACE_CHECK(GetParamWorkSpace(), return -1, "Param workspace has not init.");