Home
last modified time | relevance | path

Searched refs:selinuxSpace (Results 1 – 7 of 7) sorted by relevance

/base/startup/init/services/param/adapter/
Dparam_selinux.c37 static int InitSelinuxOpsForInit(SelinuxSpace *selinuxSpace) in InitSelinuxOpsForInit() argument
39 if (selinuxSpace->selinuxHandle == NULL) { in InitSelinuxOpsForInit()
41 selinuxSpace->selinuxHandle = dlopen(libname, RTLD_LAZY); in InitSelinuxOpsForInit()
42 PARAM_CHECK(selinuxSpace->selinuxHandle != NULL, in InitSelinuxOpsForInit()
45 void *handle = selinuxSpace->selinuxHandle; in InitSelinuxOpsForInit()
46 if (selinuxSpace->setParamCheck == NULL) { in InitSelinuxOpsForInit()
47 selinuxSpace->setParamCheck = (SelinuxSetParamCheck)dlsym(handle, "SetParamCheck"); in InitSelinuxOpsForInit()
48 …PARAM_CHECK(selinuxSpace->setParamCheck != NULL, return -1, "Failed to dlsym setParamCheck %s", dl… in InitSelinuxOpsForInit()
50 if (selinuxSpace->getParamList == NULL) { in InitSelinuxOpsForInit()
51 selinuxSpace->getParamList = (ParamContextsList *(*)()) dlsym(handle, "GetParamList"); in InitSelinuxOpsForInit()
[all …]
/base/startup/init/test/unittest/param/
Dparam_stub.cpp190 SelinuxSpace *selinuxSpace = &GetParamWorkSpace()->selinuxSpace; in TestSetSelinuxOps() local
191 selinuxSpace->setSelinuxLogCallback = TestSetSelinuxLogCallback; in TestSetSelinuxOps()
192 selinuxSpace->setParamCheck = TestSetParamCheck; in TestSetSelinuxOps()
193 selinuxSpace->getParamLabel = TestGetParamLabel; in TestSetSelinuxOps()
194 selinuxSpace->readParamCheck = TestReadParamCheck; in TestSetSelinuxOps()
195 selinuxSpace->getParamList = TestGetParamList; in TestSetSelinuxOps()
196 selinuxSpace->destroyParamList = TestDestroyParamList; in TestSetSelinuxOps()
197 selinuxSpace->getParamLabelIndex = TestGetSelinuxLabelIndex; in TestSetSelinuxOps()
752 if (paramWorkspace->selinuxSpace.getParamLabelIndex == nullptr) { in TestGetParamLabelIndex()
755 index = (uint32_t)paramWorkspace->selinuxSpace.getParamLabelIndex(name) + WORKSPACE_INDEX_BASE; in TestGetParamLabelIndex()
Dparam_unittest.cpp313 return (paramSpace->selinuxSpace.getParamLabelIndex != nullptr) ? in GetWorkSpaceIndex()
314 paramSpace->selinuxSpace.getParamLabelIndex(name) + WORKSPACE_INDEX_BASE : (uint32_t)-1; in GetWorkSpaceIndex()
/base/startup/init/services/param/base/
Dparam_comm.c27 if (paramSpace->selinuxSpace.getParamLabelIndex == NULL) { in GetWorkSpaceByName()
30 …uint32_t labelIndex = (uint32_t)paramSpace->selinuxSpace.getParamLabelIndex(name) + WORKSPACE_INDE… in GetWorkSpaceByName()
Dparam_base.c462 SelinuxSpace *selinuxSpace = &g_paramWorkSpace.selinuxSpace; in GetSelinuxContent() local
464 if (selinuxSpace->getParamLabel != NULL) { in GetSelinuxContent()
465 content = selinuxSpace->getParamLabel(name); in GetSelinuxContent()
473 SelinuxSpace *selinuxSpace = &g_paramWorkSpace.selinuxSpace; in SelinuxCheckParamPermission() local
476 PARAM_CHECK(selinuxSpace->setParamCheck != NULL, return ret, "Invalid setParamCheck"); in SelinuxCheckParamPermission()
484 ret = selinuxSpace->setParamCheck(name, context, &info); in SelinuxCheckParamPermission()
487 return selinuxSpace->readParamCheck(name); in SelinuxCheckParamPermission()
/base/startup/init/services/param/include/
Dparam_manager.h70 SelinuxSpace selinuxSpace; member
/base/startup/init/services/param/manager/
Dparam_manager.c259 const char *tmpName = (paramSpace->selinuxSpace.getParamLabel != NULL) ? in GetParamSecurityAuditData()
260 paramSpace->selinuxSpace.getParamLabel(name) : NULL; in GetParamSecurityAuditData()