Home
last modified time | relevance | path

Searched refs:AppSpawnMgr (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/base/startup/appspawn/test/moduletest/plugin-sample/
H A Dappspawn_plugin_sample.c26 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 *content, AppSpawningCtx *property) in ChildPreRely()
78 static int ChildPostRely(AppSpawnMgr *content, AppSpawningCtx *property) in ChildPostRely()
[all …]
/ohos5.0/base/startup/appspawn/test/mock/
H A Dapp_spawn_stub.h46 typedef struct TagAppSpawnMgr AppSpawnMgr; typedef
62 int AppSpawnClearEnv(AppSpawnMgr *content, AppSpawningCtx *property);
70 int SetProcessName(const AppSpawnMgr *content, const AppSpawningCtx *property);
71 int SetFdEnv(AppSpawnMgr *content, AppSpawningCtx *property);
72 int PreLoadEnablePidNs(AppSpawnMgr *content);
75 int PreLoadEnablePidNs(AppSpawnMgr *content);
77 int RunBegetctlBootApp(AppSpawnMgr *content, AppSpawningCtx *property);
98 int SetSelinuxConNweb(const AppSpawnMgr *content, const AppSpawningCtx *property);
/ohos5.0/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.c228 static int SetUidGid(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetUidGid()
363 static int SpawnInitSpawningEnv(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnInitSpawningEnv()
378 static int SpawnSetAppEnv(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnSetAppEnv()
386 static int SpawnEnableCache(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnEnableCache()
407 static int SpawnSetProperties(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnSetProperties()
442 static int PreLoadSetSeccompFilter(AppSpawnMgr *content) in PreLoadSetSeccompFilter()
450 static int SpawnComplete(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnComplete()
465 static int SpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnGetSpawningFlag()
481 static int SpawnLoadConfig(AppSpawnMgr *content) in SpawnLoadConfig()
490 static int CloseFdArgs(AppSpawnMgr *content, AppSpawningCtx *property) in CloseFdArgs()
[all …]
H A Dappspawn_adapter.cpp40 int SetAppAccessToken(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetAppAccessToken()
62 int SetSelinuxConNweb(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSelinuxConNweb()
79 int SetSelinuxCon(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSelinuxCon()
128 int SetUidGidFilter(const AppSpawnMgr *content) in SetUidGidFilter()
149 int SetSeccompFilter(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSeccompFilter()
205 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 static int PreForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property) in PreForkSetPidNamespace()
250 static int PostForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property) in PostForkSetPidNamespace()
H A Dappspawn_cgroup.c144 static void KillProcessesByCGroup(const char *path, AppSpawnMgr *content, const AppSpawnedProcessIn… in KillProcessesByCGroup()
170 static int ProcessMgrRemoveApp(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo) in ProcessMgrRemoveApp()
188 KillProcessesByCGroup(procPath, (AppSpawnMgr *)content, appInfo); in ProcessMgrRemoveApp()
196 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()
/ohos5.0/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 IsAppSpawnMode(const AppSpawnMgr *content) in IsAppSpawnMode()
192 APPSPAWN_INLINE int IsNWebSpawnMode(const AppSpawnMgr *content) in IsNWebSpawnMode()
198 APPSPAWN_INLINE int IsColdRunMode(const AppSpawnMgr *content) in IsColdRunMode()
[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.c78 static void AppQueueDestroyProc(const AppSpawnMgr *mgr, AppSpawnedProcess *appInfo, void *data) in AppQueueDestroyProc()
203 static void AppSpawningCtxOnClose(const AppSpawnMgr *mgr, AppSpawningCtx *ctx, void *data) in AppSpawningCtxOnClose()
578 if (IsNWebSpawnMode((AppSpawnMgr *)GetAppSpawnContent())) { in WatchChildProcessFd()
1082 AppSpawnMgr *appSpawnContent = (AppSpawnMgr *)content; in AppSpawnDestroyContent()
1110 int ret = WriteMsgToChild(property, IsNWebSpawnMode((AppSpawnMgr *)content)); in AppSpawnColdStartApp()
1123 char *mode = IsNWebSpawnMode((AppSpawnMgr *)content) ? "nweb_cold" : "app_cold"; in AppSpawnColdStartApp()
1187 AppSpawnMgr *appSpawnContent = (AppSpawnMgr *)content; in AppSpawnColdRun()
1222 AppSpawnMgr *appSpawnContent = (AppSpawnMgr *)content; in AppSpawnRun()
1244 APPSPAWN_STATIC int AppSpawnClearEnv(AppSpawnMgr *content, AppSpawningCtx *property) in AppSpawnClearEnv()
1267 AppSpawnMgr *appSpawnContent = CreateAppSpawnMgr(mode); in AppSpawnCreateContent()
[all …]
/ohos5.0/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);
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_appmgr_test.cpp59 AppSpawnMgr *mgr = CreateAppSpawnMgr(i);
117 AppSpawnMgr *mgr = CreateAppSpawnMgr(0);
160 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
202 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
236 AppSpawnMgr *mgr = CreateAppSpawnMgr(0);
271 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
476 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
521 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
556 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
588 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
[all …]
H A Dapp_spawn_common_test.cpp67 AppSpawnMgr *mgr = nullptr;
94 AppSpawnMgr *mgr = nullptr;
121 AppSpawnMgr *mgr = nullptr;
151 AppSpawnMgr *mgr = nullptr;
183 AppSpawnMgr *mgr = nullptr;
215 AppSpawnMgr *mgr = nullptr;
341 AppSpawnMgr *mgr = nullptr;
373 AppSpawnMgr *mgr = nullptr;
H A Dapp_spawn_sandboxmgr_test.cpp53 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
83 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
105 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
136 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
183 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
220 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
246 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
288 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
323 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
354 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
[all …]
H A Dapp_spawn_module_interface_test.cpp100 static int TestAppPreload(AppSpawnMgr *content) in TestAppPreload()
107 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
134 static int TestAppSpawn(AppSpawnMgr *content, AppSpawningCtx *property) in TestAppSpawn()
141 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
182 static int ReportProcessExitInfo(const AppSpawnMgr *content, const AppSpawnedProcess *appInfo) in ReportProcessExitInfo()
189 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
232 AppSpawnMgr *mgr = CreateAppSpawnMgr(MODE_FOR_NWEB_SPAWN);
/ohos5.0/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()
115 static int AsanSpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *property) in AsanSpawnGetSpawningFlag()
140 static int AsanSpawnInitSpawningEnv(AppSpawnMgr *content, AppSpawningCtx *property) in AsanSpawnInitSpawningEnv()
/ohos5.0/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()
/ohos5.0/base/startup/appspawn/modules/ace_adapter/
H A Dace_adapter.cpp188 static int RunChildThread(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildThread()
208 static int RunChildByRenderCmd(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildByRenderCmd()
247 ret = RunChildByRenderCmd(reinterpret_cast<AppSpawnMgr *>(content), property); in RunChildProcessor()
249 ret = RunChildThread(reinterpret_cast<AppSpawnMgr *>(content), property); in RunChildProcessor()
254 static int PreLoadAppSpawn(AppSpawnMgr *content) in PreLoadAppSpawn()
/ohos5.0/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()
/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dsandbox_manager.c352 AppSpawnSandboxCfg *GetAppSpawnSandbox(const AppSpawnMgr *content) in GetAppSpawnSandbox()
485 APPSPAWN_STATIC int PreLoadSandboxCfg(AppSpawnMgr *content) in PreLoadSandboxCfg()
505 APPSPAWN_STATIC int SandboxHandleServerExit(AppSpawnMgr *content) in SandboxHandleServerExit()
513 int SpawnBuildSandboxEnv(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnBuildSandboxEnv()
580 int SpawnPrepareSandboxCfg(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnPrepareSandboxCfg()
601 APPSPAWN_STATIC int SandboxUnmountPath(const AppSpawnMgr *content, const AppSpawnedProcessInfo *app… in SandboxUnmountPath()
H A Dsandbox_utils.h134 int LoadAppSandboxConfig(AppSpawnMgr *content);
H A Dappspawn_sandbox.h218 AppSpawnSandboxCfg *GetAppSpawnSandbox(const AppSpawnMgr *content);
/ohos5.0/base/startup/appspawn/modules/sysevent/
H A Devent_reporter.cpp45 static int ProcessMgrRemoveApp(const AppSpawnMgr *content, const AppSpawnedProcessInfo *appInfo) in ProcessMgrRemoveApp()
/ohos5.0/base/startup/appspawn/modules/nweb_adapter/
H A Dnwebspawn_adapter.cpp150 static int PreLoadNwebSpawn(AppSpawnMgr *content) in PreLoadNwebSpawn()

12