Home
last modified time | relevance | path

Searched refs:selinuxSpace (Results 1 – 5 of 5) 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.cpp132 SelinuxSpace *selinuxSpace = &GetParamWorkSpace()->selinuxSpace; in TestSetSelinuxOps() local
133 selinuxSpace->setSelinuxLogCallback = TestSetSelinuxLogCallback; in TestSetSelinuxOps()
134 selinuxSpace->setParamCheck = TestSetParamCheck; in TestSetSelinuxOps()
135 selinuxSpace->getParamLabel = TestGetParamLabel; in TestSetSelinuxOps()
136 selinuxSpace->readParamCheck = TestReadParamCheck; in TestSetSelinuxOps()
137 selinuxSpace->getParamList = TestGetParamList; in TestSetSelinuxOps()
138 selinuxSpace->destroyParamList = TestDestroyParamList; in TestSetSelinuxOps()
/base/startup/init/services/param/include/
Dparam_manager.h65 SelinuxSpace selinuxSpace; member
/base/startup/init/services/param/manager/
Dparam_manager.c252 const char *tmpName = (paramSpace->selinuxSpace.getParamLabel != NULL) ? in GetParamSecurityAuditData()
253 paramSpace->selinuxSpace.getParamLabel(name) : NULL; in GetParamSecurityAuditData()
/base/startup/init/services/param/base/
Dparam_comm.c51 tmpName = (paramSpace->selinuxSpace.getParamLabel != NULL) ? in GetWorkSpace()
52 (char *)paramSpace->selinuxSpace.getParamLabel(name) : WORKSPACE_NAME_NORMAL; in GetWorkSpace()