Home
last modified time | relevance | path

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

/base/startup/init/services/init/lite/
Dinit_service.c67 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/
Dservice_unittest.cpp225 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/
Dinit_service.c88 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()
Dinit_control_fd_service.c102 DumpServiceArgs("path arg", &service->pathArgs); in DumpOneService()
/base/startup/init/services/init/
Dinit_service_manager.c137 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 …]
Dinit_common_service.c87 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/
Dinit_service.h151 ServiceArgs pathArgs; member