Searched refs:pathArgs (Results 1 – 7 of 7) sorted by relevance
/base/startup/init/services/init/lite/ |
D | init_service.c | 67 INIT_ERROR_CHECK(service != NULL && service->pathArgs.count > 0, in ServiceExec() 69 if (execv(service->pathArgs.argv[0], service->pathArgs.argv) != 0) { in ServiceExec()
|
/base/startup/init/test/unittest/init/ |
D | service_unittest.cpp | 225 service->pathArgs.argv = (char **)malloc(sizeof(char *)); 226 ASSERT_NE(nullptr, service->pathArgs.argv); 227 service->pathArgs.count = 1; 229 service->pathArgs.argv[0] = strdup(path); 361 service->pathArgs.argv = (char **)malloc(sizeof(char *)); 362 ASSERT_NE(service->pathArgs.argv, nullptr); 363 service->pathArgs.count = 1; 365 service->pathArgs.argv[0] = strdup(path);
|
/base/startup/init/services/init/standard/ |
D | init_service.c | 88 INIT_ERROR_CHECK(service != NULL && service->pathArgs.count > 0, in ServiceExec() 99 INIT_CHECK_ONLY_ELOG(execv(service->pathArgs.argv[0], service->pathArgs.argv) == 0, in ServiceExec()
|
D | init_control_fd_service.c | 102 DumpServiceArgs("path arg", &service->pathArgs); in DumpOneService()
|
/base/startup/init/services/init/ |
D | init_service_manager.c | 137 FreeServiceArg(&service->pathArgs); in ReleaseService() 799 int ret = strcpy_s(tmpPathName, MAX_ONE_ARG_LEN, service->pathArgs.argv[0]); in SetServicePathWithAsan() 800 …INIT_ERROR_CHECK(ret == 0, return, "Asan: failed to copy service path %s", service->pathArgs.argv[… in SetServicePathWithAsan() 813 free(service->pathArgs.argv[0]); in SetServicePathWithAsan() 814 service->pathArgs.argv[0] = strdup(tmpPathName); in SetServicePathWithAsan() 815 …INIT_LOGI("Asan: replace module %s with %s successfully.", service->name, service->pathArgs.argv[0… in SetServicePathWithAsan() 842 int ret = GetServiceArgs(curItem, "path", MAX_PATH_ARGS_CNT, &service->pathArgs); in ParseOneService() 844 if ((service->pathArgs.count > 0) && IsForbidden(service->pathArgs.argv[0])) { in ParseOneService() 1069 service->extraArgs.count = service->pathArgs.count + returnCount - 1; in GetServiceByExtServName() 1074 for (argc = 0; argc < (service->pathArgs.count - 1); argc++) { in GetServiceByExtServName() [all …]
|
D | init_common_service.c | 87 rc = strcat_s(cmdContent, MAX_CMD_CONTENT_LEN + 1, service->pathArgs.argv[0]); in SetSystemSeccompPolicy() 321 SetServiceEnterSandbox(service->pathArgs.argv[0], service->attribute); in InitServiceProperties() 516 INIT_ERROR_CHECK(service->pathArgs.count > 0, in ServiceStart() 525 if (stat(service->pathArgs.argv[0], &pathStat) != 0) { in ServiceStart() 527 … INIT_LOGE("start service %s invalid, please check %s.", service->name, service->pathArgs.argv[0]); in ServiceStart() 548 args = &service->pathArgs; in ServiceStart()
|
/base/startup/init/services/init/include/ |
D | init_service.h | 151 ServiceArgs pathArgs; member
|