Home
last modified time | relevance | path

Searched refs:pathArgs (Results 1 - 8 of 8) sorted by relevance

/base/startup/init/services/init/lite/
H A Dinit_service.c65 int ServiceExec(Service *service, const ServiceArgs *pathArgs) in ServiceExec() argument
67 INIT_ERROR_CHECK(pathArgs != NULL && pathArgs->count > 0, in ServiceExec()
69 if (execv(pathArgs->argv[0], pathArgs->argv) != 0) { in ServiceExec()
/base/startup/init/test/unittest/init/
H A Dservice_unittest.cpp124 ret = ServiceStart(service, &service->pathArgs); in HWTEST_F()
157 ret = ServiceStart(service, &service->pathArgs); in HWTEST_F()
197 ret = ServiceStart(service, &service->pathArgs); in HWTEST_F()
201 ret = ServiceStart(service, &service->pathArgs); in HWTEST_F()
281 service->pathArgs.argv = (char **)malloc(sizeof(char *)); in HWTEST_F()
282 ASSERT_NE(nullptr, service->pathArgs.argv); in HWTEST_F()
283 service->pathArgs.count = 1; in HWTEST_F()
285 service->pathArgs.argv[0] = strdup(path); in HWTEST_F()
422 service->pathArgs.argv = (char **)malloc(sizeof(char *)); in HWTEST_F()
423 ASSERT_NE(service->pathArgs in HWTEST_F()
[all...]
/base/startup/init/services/init/standard/
H A Dinit_service.c115 int ServiceExec(Service *service, const ServiceArgs *pathArgs) in ServiceExec() argument
119 INIT_ERROR_CHECK(pathArgs != NULL && pathArgs->count > 0, in ServiceExec()
130 INIT_ERROR_CHECK(execv(pathArgs->argv[0], pathArgs->argv) == 0, in ServiceExec()
H A Dinit_control_fd_service.c142 DumpServiceArgs("path arg", &service->pathArgs); in DumpOneService()
/base/startup/init/services/init/
H A Dinit_common_service.c91 rc = strcat_s(cmdContent, MAX_CMD_CONTENT_LEN + 1, service->pathArgs.argv[0]); in SetSystemSeccompPolicy()
228 ServiceHookExecute(service->name, (const char *)service->pathArgs.argv[0], INIT_SERVICE_SET_PERMS_BEFORE); in SetPerms()
410 static int InitServiceProperties(Service *service, const ServiceArgs *pathArgs) in InitServiceProperties() argument
413 int ret = SetServiceEnterSandbox(service, pathArgs->argv[0]); in InitServiceProperties()
469 INIT_ERROR_CHECK(InitServiceProperties(service, &service->pathArgs) == 0, return, "Failed init service property"); in EnterServiceSandbox()
598 static void RunChildProcess(Service *service, ServiceArgs *pathArgs) in RunChildProcess() argument
614 int ret = InitServiceProperties(service, pathArgs); in RunChildProcess()
618 (void)ServiceExec(service, pathArgs); in RunChildProcess()
622 int ServiceStart(Service *service, ServiceArgs *pathArgs) in ServiceStart() argument
626 INIT_ERROR_CHECK(pathArgs ! in ServiceStart()
[all...]
H A Dinit_service_manager.c147 FreeServiceArg(&service->pathArgs); in ReleaseService()
839 int ret = strcpy_s(tmpPathName, MAX_ONE_ARG_LEN, service->pathArgs.argv[0]); in SetServicePathWithAsan()
840 INIT_ERROR_CHECK(ret == 0, return, "Asan: failed to copy service path %s", service->pathArgs.argv[0]); in SetServicePathWithAsan()
853 free(service->pathArgs.argv[0]); in SetServicePathWithAsan()
854 service->pathArgs.argv[0] = strdup(tmpPathName); in SetServicePathWithAsan()
855 INIT_ERROR_CHECK(service->pathArgs.argv[0] != NULL, return, "Asan: failed dup path."); in SetServicePathWithAsan()
856 INIT_LOGI("Asan: replace module %s with %s successfully.", service->name, service->pathArgs.argv[0]); in SetServicePathWithAsan()
937 int ret = GetServiceArgs(curItem, "path", MAX_PATH_ARGS_CNT, &service->pathArgs); in ParseOneService()
939 if ((service->pathArgs.count > 0) && IsForbidden(service->pathArgs in ParseOneService()
1205 ServiceArgs *pathArgs = &service->pathArgs; StartServiceByName() local
[all...]
H A Dinit_service_socket.c175 if (ServiceStart(service, &service->pathArgs) != SERVICE_SUCCESS) { in ProcessWatchEvent_()
/base/startup/init/services/init/include/
H A Dinit_service.h166 ServiceArgs pathArgs; member
184 int ServiceStart(Service *service, ServiceArgs *pathArgs);
193 int ServiceExec(Service *service, const ServiceArgs *pathArgs);

Completed in 7 milliseconds