Home
last modified time | relevance | path

Searched refs:WorkSpace (Results 1 – 12 of 12) sorted by relevance

/base/startup/init/services/param/include/
Dparam_trie.h33 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);
Dparam_manager.h75 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);
Dparam_common.h113 } WorkSpace; typedef
/base/startup/init/services/param/manager/
Dparam_manager.c38 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 …]
Dparam_persist.c41 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/
Dparam_trie.c26 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 …]
Dparam_base.c37 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 …]
Dparam_comm.c22 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()
Dparam_include.h38 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/
Dparam_unittest.cpp89 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");
Dparamservice_unittest.cpp90 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/
Dparam_selinux.c222 WorkSpace *space = paramWorkspace->workSpace[WORKSPACE_INDEX_DAC]; in HandleSelinuxLabelForPermission()