Home
last modified time | relevance | path

Searched refs:AppSpawnMgr (Results 1 - 25 of 33) sorted by relevance

12

/base/startup/appspawn/test/moduletest/plugin-sample/
H A Dappspawn_plugin_sample.c20 static int TestPluginReportProcessExit(const AppSpawnMgr *content, const AppSpawnedProcess *appInfo) in TestPluginReportProcessExit()
26 static int TestPluginReportProcessAdd(const AppSpawnMgr *content, const AppSpawnedProcess *appInfo) in TestPluginReportProcessAdd()
32 static int TestPluginPreload(AppSpawnMgr *content) in TestPluginPreload()
38 static int TestPluginExit(AppSpawnMgr *content) in TestPluginExit()
45 static int TestPluginPreFork(AppSpawnMgr *content, AppSpawningCtx *property) in TestPluginPreFork()
51 static int TestPluginPreReply(AppSpawnMgr *content, AppSpawningCtx *property) in TestPluginPreReply()
57 static int TestPluginPostReply(AppSpawnMgr *content, AppSpawningCtx *property) in TestPluginPostReply()
63 static int ChildPreColdBoot(AppSpawnMgr *content, AppSpawningCtx *property) in ChildPreColdBoot()
68 static int ChildExecute(AppSpawnMgr *content, AppSpawningCtx *property) in ChildExecute()
73 static int ChildPreRely(AppSpawnMgr *conten in ChildExecute()
[all...]
/base/startup/appspawn/modules/common/
H A Dappspawn_adapter.h25 int SetAppAccessToken(const AppSpawnMgr *content, const AppSpawningCtx *property);
26 int SetSelinuxCon(const AppSpawnMgr *content, const AppSpawningCtx *property);
28 int SetUidGidFilter(const AppSpawnMgr *content);
29 int SetSeccompFilter(const AppSpawnMgr *content, const AppSpawningCtx *property);
31 int32_t SetEnvInfo(const AppSpawnMgr *content, const AppSpawningCtx *property);
H A Dappspawn_common.c66 static int SetProcessName(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetProcessName()
99 static int SetKeepCapabilities(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetKeepCapabilities()
113 static int SetCapabilities(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetCapabilities()
152 static void InitDebugParams(const AppSpawnMgr *content, const AppSpawningCtx *property) in InitDebugParams()
177 static void ClearEnvironment(const AppSpawnMgr *content, const AppSpawningCtx *property) in ClearEnvironment()
191 static int SetXpmConfig(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetXpmConfig()
227 static int SetUidGid(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetUidGid()
273 static int32_t SetFileDescriptors(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetFileDescriptors()
356 static int SpawnInitSpawningEnv(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnInitSpawningEnv()
371 static int SpawnSetAppEnv(AppSpawnMgr *conten
[all...]
H A Dappspawn_adapter.cpp46 int SetAppAccessToken(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetAppAccessToken()
68 int SetSelinuxConNweb(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSelinuxConNweb()
85 int SetSelinuxCon(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSelinuxCon()
134 int SetUidGidFilter(const AppSpawnMgr *content) in SetUidGidFilter()
160 int SetSeccompFilter(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSeccompFilter()
233 int32_t SetEnvInfo(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetEnvInfo()
H A Dappspawn_namespace.c48 APPSPAWN_STATIC AppSpawnNamespace *GetAppSpawnNamespace(const AppSpawnMgr *content) in GetAppSpawnNamespace()
177 APPSPAWN_STATIC int PreLoadEnablePidNs(AppSpawnMgr *content) in PreLoadEnablePidNs()
238 APPSPAWN_STATIC int PreForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property) in PreForkSetPidNamespace()
250 APPSPAWN_STATIC int PostForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property) in PostForkSetPidNamespace()
H A Dappspawn_cgroup.c144 static void KillProcessesByCGroup(const char *path, AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo) in KillProcessesByCGroup()
170 APPSPAWN_STATIC int ProcessMgrRemoveApp(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo) in ProcessMgrRemoveApp()
188 KillProcessesByCGroup(procPath, (AppSpawnMgr *)content, appInfo); in ProcessMgrRemoveApp()
196 APPSPAWN_STATIC int ProcessMgrAddApp(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo) in ProcessMgrAddApp()
H A Dappspawn_begetctl.c68 APPSPAWN_STATIC int RunBegetctlBootApp(AppSpawnMgr *content, AppSpawningCtx *property) in RunBegetctlBootApp()
/base/startup/appspawn/test/mock/
H A Dapp_spawn_stub.h47 typedef struct TagAppSpawnMgr AppSpawnMgr; typedef
55 AppSpawnNamespace *GetAppSpawnNamespace(const AppSpawnMgr *content);
58 int PreForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property);
59 int PostForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property);
60 int ProcessMgrRemoveApp(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo);
61 int ProcessMgrAddApp(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo);
76 int SpawnPrepareSandboxCfg(AppSpawnMgr *content, AppSpawningCtx *property);
96 int AppSpawnClearEnv(AppSpawnMgr *content, AppSpawningCtx *property);
104 int SetProcessName(const AppSpawnMgr *content, const AppSpawningCtx *property);
105 int SetFdEnv(AppSpawnMgr *conten
[all...]
/base/startup/appspawn/standard/
H A Dappspawn_manager.h123 } AppSpawnMgr; typedef
129 AppSpawnMgr *CreateAppSpawnMgr(int mode);
130 AppSpawnMgr *GetAppSpawnMgr(void);
131 void DeleteAppSpawnMgr(AppSpawnMgr *mgr);
138 typedef void (*AppTraversal)(const AppSpawnMgr *mgr, AppSpawnedProcess *appInfo, void *data);
149 typedef void (*ProcessTraversal)(const AppSpawnMgr *mgr, AppSpawningCtx *ctx, void *data);
181 APPSPAWN_INLINE int IsSpawnServer(const AppSpawnMgr *content) in IsSpawnServer()
186 APPSPAWN_INLINE int IsNWebSpawnMode(const AppSpawnMgr *content) in IsNWebSpawnMode()
192 APPSPAWN_INLINE int IsColdRunMode(const AppSpawnMgr *content) in IsColdRunMode()
270 APPSPAWN_INLINE int IsIsolatedNativeSpawnMode(const AppSpawnMgr *conten
[all...]
H A Dappspawn_appmgr.c39 static AppSpawnMgr *g_appSpawnMgr = NULL;
41 AppSpawnMgr *CreateAppSpawnMgr(int mode) in CreateAppSpawnMgr()
47 AppSpawnMgr *appMgr = (AppSpawnMgr *)calloc(1, sizeof(AppSpawnMgr)); in CreateAppSpawnMgr()
68 AppSpawnMgr *GetAppSpawnMgr(void) in GetAppSpawnMgr()
93 void DeleteAppSpawnMgr(AppSpawnMgr *mgr) in DeleteAppSpawnMgr()
H A Dappspawn_service.c98 static void AppQueueDestroyProc(const AppSpawnMgr *mgr, AppSpawnedProcess *appInfo, void *data) in AppQueueDestroyProc()
212 static void AppSpawningCtxOnClose(const AppSpawnMgr *mgr, AppSpawningCtx *ctx, void *data) in AppSpawningCtxOnClose()
586 if (IsNWebSpawnMode((AppSpawnMgr *)GetAppSpawnContent())) { in WatchChildProcessFd()
1092 AppSpawnMgr *appSpawnContent = (AppSpawnMgr *)content; in AppSpawnDestroyContent()
1123 int ret = WriteMsgToChild(property, IsNWebSpawnMode((AppSpawnMgr *)content)); in AppSpawnColdStartApp()
1137 char *mode = IsNWebSpawnMode((AppSpawnMgr *)content) ? "nweb_cold" : "app_cold"; in AppSpawnColdStartApp()
1153 static AppSpawningCtx *GetAppSpawningCtxFromArg(AppSpawnMgr *content, int argc, char *const argv[]) in GetAppSpawningCtxFromArg()
1201 AppSpawnMgr *appSpawnContent = (AppSpawnMgr *)conten in AppSpawnColdRun()
[all...]
/base/startup/appspawn/modules/module_engine/include/
H A Dappspawn_hook.h34 typedef struct TagAppSpawnMgr AppSpawnMgr; typedef
92 typedef int (*ServerStageHook)(AppSpawnMgr *content);
101 typedef int (*AppSpawnHook)(AppSpawnMgr *content, AppSpawningCtx *property);
110 typedef int (*ProcessChangeHook)(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo);
/base/startup/appspawn/modules/asan/
H A Dasan_detector.c49 static int SetAsanEnabledEnv(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetAsanEnabledEnv()
87 static void SetGwpAsanEnabled(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetGwpAsanEnabled()
118 static int AsanSpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *property) in AsanSpawnGetSpawningFlag()
143 static int AsanSpawnInitSpawningEnv(AppSpawnMgr *content, AppSpawningCtx *property) in AsanSpawnInitSpawningEnv()
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_common_test.cpp44 APPSPAWN_STATIC int PreLoadAppSpawn(AppSpawnMgr *content);
45 APPSPAWN_STATIC int RunChildByRenderCmd(const AppSpawnMgr *content, const AppSpawningCtx *property);
72 AppSpawnMgr *mgr = nullptr; in HWTEST_F()
99 AppSpawnMgr *mgr = nullptr; in HWTEST_F()
126 AppSpawnMgr *mgr = nullptr; in HWTEST_F()
156 AppSpawnMgr *mgr = nullptr; in HWTEST_F()
188 AppSpawnMgr *mgr = nullptr; in HWTEST_F()
220 AppSpawnMgr *mgr = nullptr; in HWTEST_F()
340 AppSpawnMgr *mgr = nullptr; in HWTEST_F()
372 AppSpawnMgr *mg in HWTEST_F()
[all...]
H A Dapp_spawn_sandboxmgr_test.cpp53 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
83 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
105 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
136 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
183 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
220 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
246 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
288 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
323 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
354 AppSpawnMgr *mg in HWTEST_F()
[all...]
H A Dapp_spawn_module_interface_test.cpp95 static int TestAppPreload(AppSpawnMgr *content) in TestAppPreload()
102 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
129 static int TestAppSpawn(AppSpawnMgr *content, AppSpawningCtx *property) in TestAppSpawn()
136 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
177 static int ReportProcessExitInfo(const AppSpawnMgr *content, const AppSpawnedProcess *appInfo) in ReportProcessExitInfo()
184 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
227 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
H A Dapp_spawn_appmgr_test.cpp52 * @brief AppSpawnMgr
59 AppSpawnMgr *mgr = CreateAppSpawnMgr(i); in HWTEST_F()
111 static void TestAppTraversal(const AppSpawnMgr *mgr, AppSpawnedProcess *appInfo, void *data) in TestAppTraversal()
117 AppSpawnMgr *mgr = CreateAppSpawnMgr(0); in HWTEST_F()
160 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
202 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
225 static void TestProcessTraversal(const AppSpawnMgr *mgr, AppSpawningCtx *ctx, void *data) in TestProcessTraversal()
236 AppSpawnMgr *mgr = CreateAppSpawnMgr(0); in HWTEST_F()
271 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN); in HWTEST_F()
476 AppSpawnMgr *mg in HWTEST_F()
[all...]
H A Dapp_spawn_beget_test.cpp191 AppSpawnMgr *mgr = nullptr; in HWTEST_F()
/base/startup/appspawn/modules/native_adapter/
H A Dnative_adapter.cpp81 static int RunChildThread(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildThread()
106 return RunChildThread(reinterpret_cast<AppSpawnMgr *>(content), property); in RunChildProcessor()
109 APPSPAWN_STATIC int PreLoadNativeSpawn(AppSpawnMgr *content) in PreLoadNativeSpawn()
/base/startup/appspawn/modules/modulemgr/
H A Dappspawn_modulemgr.c127 AppSpawnMgr *spawnMgr = (AppSpawnMgr *)arg->content; in PreHookExec()
135 AppSpawnMgr *spawnMgr = (AppSpawnMgr *)arg->content; in PostHookExec()
178 return realHook((AppSpawnMgr *)arg->content, (AppSpawningCtx *)arg->client); in AppSpawnHookRun()
276 return realHook((AppSpawnMgr *)arg->content, arg->appInfo); in ProcessMgrHookRun()
/base/startup/appspawn/modules/ace_adapter/
H A Dace_adapter.cpp188 static int RunChildThread(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildThread()
208 APPSPAWN_STATIC int RunChildByRenderCmd(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildByRenderCmd()
248 ret = RunChildByRenderCmd(reinterpret_cast<AppSpawnMgr *>(content), property); in RunChildProcessor()
250 ret = RunChildThread(reinterpret_cast<AppSpawnMgr *>(content), property); in RunChildProcessor()
255 APPSPAWN_STATIC int PreLoadAppSpawn(AppSpawnMgr *content) in PreLoadAppSpawn()
/base/startup/appspawn/modules/sysevent/
H A Devent_reporter.cpp45 static int ProcessMgrRemoveApp(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo) in ProcessMgrRemoveApp()
/base/startup/appspawn/modules/sandbox/
H A Dsandbox_manager.c352 AppSpawnSandboxCfg *GetAppSpawnSandbox(const AppSpawnMgr *content, ExtDataType type) in GetAppSpawnSandbox()
485 APPSPAWN_STATIC int PreLoadIsoLatedSandboxCfg(AppSpawnMgr *content) in PreLoadIsoLatedSandboxCfg()
509 APPSPAWN_STATIC int PreLoadSandboxCfg(AppSpawnMgr *content) in PreLoadSandboxCfg()
529 APPSPAWN_STATIC int IsolatedSandboxHandleServerExit(AppSpawnMgr *content) in IsolatedSandboxHandleServerExit()
537 APPSPAWN_STATIC int SandboxHandleServerExit(AppSpawnMgr *content) in SandboxHandleServerExit()
545 int SpawnBuildSandboxEnv(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnBuildSandboxEnv()
646 int SpawnPrepareSandboxCfg(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnPrepareSandboxCfg()
679 APPSPAWN_STATIC int SandboxUnmountPath(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo) in SandboxUnmountPath()
H A Dsandbox_utils.h137 int LoadAppSandboxConfig(AppSpawnMgr *content);
/base/startup/appspawn/modules/nweb_adapter/
H A Dnwebspawn_adapter.cpp156 static int PreLoadNwebSpawn(AppSpawnMgr *content) in PreLoadNwebSpawn()

Completed in 16 milliseconds

12