/base/startup/init/services/param/base/ |
D | param_comm.c | 24 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in GetWorkSpaceByName() local 25 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetWorkSpaceByName() 27 if (paramSpace->selinuxSpace.getParamLabelIndex == NULL) { in GetWorkSpaceByName() 30 …uint32_t labelIndex = (uint32_t)paramSpace->selinuxSpace.getParamLabelIndex(name) + WORKSPACE_INDE… in GetWorkSpaceByName() 31 if (labelIndex < paramSpace->maxSpaceCount) { in GetWorkSpaceByName() 32 return paramSpace->workSpace[labelIndex]; in GetWorkSpaceByName() 36 return paramSpace->workSpace[WORKSPACE_INDEX_DAC]; in GetWorkSpaceByName() 42 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in GetWorkSpace() local 43 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in GetWorkSpace() 44 PARAM_CHECK(paramSpace->workSpace != NULL, return NULL, "Invalid paramSpace->workSpace"); in GetWorkSpace() [all …]
|
D | param_base.c | 132 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in AllocSpaceMemory() local 133 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid workspace"); in AllocSpaceMemory() 145 if (paramSpace->workSpace[i] != NULL) { in AllocSpaceMemory() 146 paramSpace->workSpace[i]->spaceSize = PARAM_WORKSPACE_MIN; in AllocSpaceMemory() 157 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in CreateWorkSpace() local 158 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid workspace"); in CreateWorkSpace() 174 paramSpace->maxLabelIndex++; in CreateWorkSpace() 180 paramSpace->maxLabelIndex = 1; in CreateWorkSpace() 275 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in AddWorkSpace() local 276 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid workspace"); in AddWorkSpace() [all …]
|
/base/startup/init/services/param/manager/ |
D | param_manager.c | 34 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in SystemCheckMatchParamWait() local 35 PARAM_CHECK(paramSpace != NULL, return NULL, "Invalid paramSpace"); in SystemCheckMatchParamWait() 36 PARAM_WORKSPACE_CHECK(paramSpace, return NULL, "Invalid space"); in SystemCheckMatchParamWait() 88 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in SystemTraversalParameter() local 89 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in SystemTraversalParameter() 90 PARAM_WORKSPACE_CHECK(paramSpace, return -1, "Invalid space"); in SystemTraversalParameter() 191 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in SystemDumpParameters() local 192 PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace"); in SystemDumpParameters() 193 PARAM_WORKSPACE_CHECK(paramSpace, return, "Invalid space"); in SystemDumpParameters() 207 paramSpace->securityLabel.cred.pid, in SystemDumpParameters() [all …]
|
D | param_persist.c | 38 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in GetPersistCommitId() local 39 PARAM_CHECK(paramSpace != NULL, return 0, "Invalid paramSpace"); in GetPersistCommitId() 40 PARAM_WORKSPACE_CHECK(paramSpace, return 0, "Invalid space"); in GetPersistCommitId() 53 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in UpdatePersistCommitId() local 54 PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace"); in UpdatePersistCommitId() 55 PARAM_WORKSPACE_CHECK(paramSpace, return, "Invalid space"); in UpdatePersistCommitId()
|
D | param_server.c | 269 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in LoadSecurityLabel() local 270 PARAM_CHECK(paramSpace != NULL, return -1, "Invalid paramSpace"); in LoadSecurityLabel() 271 PARAM_WORKSPACE_CHECK(paramSpace, return -1, "Invalid space"); in LoadSecurityLabel() 489 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in LoadOneParamAreaSize_() local 490 PARAM_CHECK(paramSpace != NULL && paramSpace->workSpace != NULL, in LoadOneParamAreaSize_() 499 if (paramSpace->workSpace[i] == NULL) { in LoadOneParamAreaSize_() 502 if (strcmp(paramSpace->workSpace[i]->fileName, buffer) == 0) { in LoadOneParamAreaSize_() 504 paramSpace->workSpace[i]->spaceSize = size; in LoadOneParamAreaSize_()
|
/base/startup/init/services/param/linux/ |
D | param_request.c | 315 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in ResetParamSecurityLabel() local 316 PARAM_CHECK(paramSpace != NULL, return, "Invalid paramSpace"); in ResetParamSecurityLabel() 318 paramSpace->securityLabel.cred.pid = getpid(); in ResetParamSecurityLabel() 319 paramSpace->securityLabel.cred.uid = geteuid(); in ResetParamSecurityLabel() 320 paramSpace->securityLabel.cred.gid = getegid(); in ResetParamSecurityLabel() 321 paramSpace->flags |= WORKSPACE_FLAGS_NEED_ACCESS; in ResetParamSecurityLabel()
|
/base/startup/init/services/param/adapter/ |
D | param_selinux.c | 153 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in HandleSelinuxLabelForInit() local 154 PARAM_CHECK(paramSpace != NULL, return, "Invalid workspace"); in HandleSelinuxLabelForInit() 155 if (paramSpace->maxLabelIndex < labelIndex) { in HandleSelinuxLabelForInit() 156 paramSpace->maxLabelIndex = labelIndex; in HandleSelinuxLabelForInit()
|
/base/startup/init/test/unittest/param/ |
D | param_stub.cpp | 555 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in TestBeforeInit() local 556 EXPECT_NE(paramSpace, nullptr); in TestBeforeInit() 559 paramSpace = GetParamWorkSpace(); in TestBeforeInit() 560 EXPECT_NE(paramSpace, nullptr); in TestBeforeInit()
|
D | param_unittest.cpp | 309 ParamWorkSpace *paramSpace = GetParamWorkSpace(); in GetWorkSpaceIndex() local 310 PARAM_CHECK(paramSpace != nullptr, return (uint32_t)-1, "Invalid paramSpace"); in GetWorkSpaceIndex() 311 return (paramSpace->selinuxSpace.getParamLabelIndex != nullptr) ? in GetWorkSpaceIndex() 312 paramSpace->selinuxSpace.getParamLabelIndex(name) + WORKSPACE_INDEX_BASE : (uint32_t)-1; in GetWorkSpaceIndex()
|