Searched refs:WorkSpace (Results 1 – 12 of 12) sorted by relevance
/base/startup/init/services/param/include/ |
D | param_trie.h | 33 INIT_LOCAL_API int InitWorkSpace(WorkSpace *workSpace, int onlyRead, uint32_t spaceSize); 34 INIT_LOCAL_API void CloseWorkSpace(WorkSpace *workSpace); 44 INIT_LOCAL_API ParamTrieNode *AddTrieNode(WorkSpace *workSpace, const char *key, uint32_t keyLen); 46 WorkSpace *workSpace, const char *key, uint32_t keyLen, uint32_t *matchLabel); 48 typedef int (*TraversalTrieNodePtr)(const WorkSpace *workSpace, const ParamTrieNode *node, const vo… 49 INIT_LOCAL_API int TraversalTrieNode(const WorkSpace *workSpace, 52 INIT_LOCAL_API uint32_t AddParamSecurityNode(WorkSpace *workSpace, const ParamAuditData *auditData); 53 INIT_LOCAL_API uint32_t AddParamNode(WorkSpace *workSpace, uint8_t type, 62 const WorkSpace *workSpace, const char *key, uint32_t keyLen, uint32_t *matchLabel);
|
D | param_manager.h | 75 WorkSpace **workSpace; 119 INIT_LOCAL_API WorkSpace *GetNextWorkSpace(WorkSpace *curr); 120 INIT_LOCAL_API WorkSpace *GetWorkSpace(uint32_t labelIndex); 121 INIT_LOCAL_API WorkSpace *GetWorkSpaceByName(const char *name);
|
D | param_common.h | 113 } WorkSpace; typedef
|
/base/startup/init/services/param/manager/ |
D | param_manager.c | 38 WorkSpace *workspace = GetWorkSpaceByName(name); in SystemCheckMatchParamWait() 64 static int ProcessParamTraversal(const WorkSpace *workSpace, const ParamTrieNode *node, const void … in ProcessParamTraversal() 106 WorkSpace *workSpace = GetNextWorkSpace(NULL); in SystemTraversalParameter() 112 WorkSpace *next = GetNextWorkSpace(workSpace); in SystemTraversalParameter() 125 static int DumpTrieDataNodeTraversal(const WorkSpace *workSpace, const ParamTrieNode *node, const v… in DumpTrieDataNodeTraversal() 154 static void HashNodeTraverseForDump(WorkSpace *workSpace, int verbose) in HashNodeTraverseForDump() 203 WorkSpace *workSpace = GetWorkSpace(index); in SystemDumpParameters() 209 WorkSpace *workSpace = GetNextWorkSpace(NULL); in SystemDumpParameters() 211 WorkSpace *next = GetNextWorkSpace(workSpace); in SystemDumpParameters() 225 WorkSpace *workSpace = GetNextWorkSpace(NULL); in SysCheckParamExist() [all …]
|
D | param_persist.c | 41 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); in GetPersistCommitId() 56 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); in UpdatePersistCommitId() 65 static int SavePersistParam(const WorkSpace *workSpace, const ParamTrieNode *node, const void *cook… in SavePersistParam() 107 WorkSpace *workSpace = GetNextWorkSpace(NULL); in BatchSavePersistParam() 109 WorkSpace *next = GetNextWorkSpace(workSpace); in BatchSavePersistParam()
|
/base/startup/init/services/param/base/ |
D | param_trie.c | 26 static uint32_t AllocateParamTrieNode(WorkSpace *workSpace, const char *key, uint32_t keyLen); 28 static int GetRealFileName(WorkSpace *workSpace, char *buffer, uint32_t size) in GetRealFileName() 36 static int InitWorkSpace_(WorkSpace *workSpace, uint32_t spaceSize, int readOnly) in InitWorkSpace_() 66 static uint32_t AllocateParamTrieNode(WorkSpace *workSpace, const char *key, uint32_t keyLen) in AllocateParamTrieNode() 89 INIT_LOCAL_API int InitWorkSpace(WorkSpace *workSpace, int onlyRead, uint32_t spaceSize) in InitWorkSpace() 102 INIT_LOCAL_API void CloseWorkSpace(WorkSpace *workSpace) in CloseWorkSpace() 117 static int CheckWorkSpace(const WorkSpace *workSpace) in CheckWorkSpace() 136 static ParamTrieNode *AddToSubTrie(WorkSpace *workSpace, ParamTrieNode *current, const char *key, u… in AddToSubTrie() 168 ParamTrieNode *AddTrieNode(WorkSpace *workSpace, const char *key, uint32_t keyLen) in AddTrieNode() 203 static int TraversalSubTrieNode(const WorkSpace *workSpace, in TraversalSubTrieNode() [all …]
|
D | param_base.c | 37 STATIC_INLINE ParamTrieNode *BaseFindTrieNode(WorkSpace *workSpace, 134 …g_paramWorkSpace.workSpace = (WorkSpace **)calloc(g_paramWorkSpace.maxLabelIndex, sizeof(WorkSpace… in InitParamWorkSpace() 244 WorkSpace *workSpace = (WorkSpace *)malloc(sizeof(WorkSpace) + size); in AddWorkSpace() 279 WorkSpace **space = (WorkSpace **)calloc(sizeof(WorkSpace *), in CheckAndExtendSpace() 282 int ret = PARAM_MEMCPY(space, sizeof(WorkSpace *) * paramSpace->maxLabelIndex, in CheckAndExtendSpace() 283 paramSpace->workSpace, sizeof(WorkSpace *) * paramSpace->maxLabelIndex); in CheckAndExtendSpace() 296 WorkSpace *workSpace = NULL; in OpenWorkSpace() 347 STATIC_INLINE int ReadParamWithCheck(WorkSpace **workspace, const char *name, uint32_t op, ParamTri… in ReadParamWithCheck() 350 WorkSpace *dacSpace = g_paramWorkSpace.workSpace[0]; in ReadParamWithCheck() 368 static int CheckUserInGroup(WorkSpace *space, gid_t groupId, uid_t uid) in CheckUserInGroup() [all …]
|
D | param_comm.c | 22 INIT_LOCAL_API WorkSpace *GetWorkSpaceByName(const char *name) in GetWorkSpaceByName() 40 INIT_LOCAL_API WorkSpace *GetWorkSpace(uint32_t labelIndex) in GetWorkSpace() 50 WorkSpace *workSpace = NULL; in GetWorkSpace()
|
D | param_include.h | 38 STATIC_INLINE ParamTrieNode *FindSubTrie(const WorkSpace *workSpace, in FindSubTrie() 71 const WorkSpace *workSpace, const char *key, uint32_t keyLen, uint32_t *matchLabel) in FindTrieNode_()
|
/base/startup/init/test/unittest/param/ |
D | param_unittest.cpp | 89 WorkSpace *workspace = GetWorkSpace(WORKSPACE_INDEX_DAC); in TestAddSecurityLabel1() 114 WorkSpace *workspace = GetWorkSpace(WORKSPACE_INDEX_DAC); in TestAddSecurityLabel2() 147 WorkSpace *workspace = GetWorkSpace(WORKSPACE_INDEX_DAC); in TestAddSecurityLabel3() 175 WorkSpace *workspace = GetWorkSpace(WORKSPACE_INDEX_DAC); in TestAddSecurityLabel4() 448 WorkSpace *space = GetWorkSpace(GetWorkSpaceIndex("test.workspace.1")); 457 WorkSpace *workSpace = (WorkSpace *)malloc(sizeof(WorkSpace) + size); 539 WorkSpace *space = GetWorkSpaceByName("test.workspace.1");
|
D | paramservice_unittest.cpp | 90 WorkSpace *workspace = GetWorkSpace(WORKSPACE_INDEX_DAC); in TestAddSecurityLabel1() 115 WorkSpace *workspace = GetWorkSpace(WORKSPACE_INDEX_DAC); in TestAddSecurityLabel2() 148 WorkSpace *workspace = GetWorkSpace(WORKSPACE_INDEX_DAC); in TestAddSecurityLabel3() 173 WorkSpace *workspace = GetWorkSpace(WORKSPACE_INDEX_DAC); in TestAddSecurityLabel4()
|
/base/startup/init/services/param/adapter/ |
D | param_selinux.c | 222 WorkSpace *space = paramWorkspace->workSpace[WORKSPACE_INDEX_DAC]; in HandleSelinuxLabelForPermission()
|