Home
last modified time | relevance | path

Searched refs:AppSpawningCtx (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dsandbox_utils.h59 static int32_t DoSandboxFileCommonSymlink(const AppSpawningCtx *appProperty,
62 static int32_t DoSandboxFilePrivateSymlink(const AppSpawningCtx *appProperty,
68 static int32_t HandleFlagsPoint(const AppSpawningCtx *appProperty,
71 static int32_t SetCommonAppSandboxProperty(const AppSpawningCtx *appProperty,
76 static int32_t DoSandboxRootFolderCreate(const AppSpawningCtx *appProperty,
79 static int DoAllMntPointsMount(const AppSpawningCtx *appProperty,
86 static bool CheckAppSandboxSwitchStatus(const AppSpawningCtx *appProperty);
94 static int32_t SetRenderSandboxProperty(const AppSpawningCtx *appProperty,
102 static int32_t DoSandboxFilePermissionBind(AppSpawningCtx *appProperty,
104 static int32_t SetPermissionAppSandboxProperty_(AppSpawningCtx *appProperty,
[all …]
H A Dsandbox_utils.cpp147 static uint32_t GetAppMsgFlags(const AppSpawningCtx *property) in GetAppMsgFlags()
646 static int32_t DoDlpAppMountStrategy(const AppSpawningCtx *appProperty, in DoDlpAppMountStrategy()
692 static int32_t HandleSpecialAppMount(const AppSpawningCtx *appProperty, in HandleSpecialAppMount()
800 int SandboxUtils::DoAllMntPointsMount(const AppSpawningCtx *appProperty, in DoAllMntPointsMount()
914 int32_t SandboxUtils::DoSandboxFilePrivateBind(const AppSpawningCtx *appProperty, in DoSandboxFilePrivateBind()
928 int32_t SandboxUtils::DoSandboxFilePermissionBind(AppSpawningCtx *appProperty, in DoSandboxFilePermissionBind()
980 int32_t SandboxUtils::HandleFlagsPoint(const AppSpawningCtx *appProperty, in HandleFlagsPoint()
1596 int32_t SandboxUtils::SetPermissionWithParam(AppSpawningCtx *appProperty) in SetPermissionWithParam()
1771 int32_t SetAppSandboxProperty(AppSpawnMgr *content, AppSpawningCtx *property) in SetAppSandboxProperty()
1980 static void UpdateStorageDir(const AppSpawningCtx *property) in UpdateStorageDir()
[all …]
H A Dappspawn_sandbox.h251 int MountSandboxConfigs(const AppSpawnSandboxCfg *sandbox, const AppSpawningCtx *property, int nweb…
252 int StagedMountSystemConst(const AppSpawnSandboxCfg *sandbox, const AppSpawningCtx *property, int n…
/ohos5.0/base/startup/appspawn/standard/
H A Dappspawn_manager.h87 } AppSpawningCtx; typedef
151 AppSpawningCtx *GetAppSpawningCtxByPid(pid_t pid);
152 AppSpawningCtx *CreateAppSpawningCtx();
153 void DeleteAppSpawningCtx(AppSpawningCtx *property);
204 APPSPAWN_INLINE int IsDeveloperModeOn(const AppSpawningCtx *property) in IsDeveloperModeOn()
209 APPSPAWN_INLINE int IsJitFortModeOn(const AppSpawningCtx *property) in IsJitFortModeOn()
214 APPSPAWN_INLINE int GetAppSpawnMsgType(const AppSpawningCtx *appProperty) in GetAppSpawnMsgType()
220 APPSPAWN_INLINE const char *GetProcessName(const AppSpawningCtx *property) in GetProcessName()
228 APPSPAWN_INLINE const char *GetBundleName(const AppSpawningCtx *property) in GetBundleName()
240 APPSPAWN_INLINE void *GetAppProperty(const AppSpawningCtx *property, uint32_t type) in GetAppProperty()
[all …]
H A Dappspawn_appmgr.c80 AppSpawningCtx *property = ListEntry(node, AppSpawningCtx, node); in SpawningQueueDestroy()
278 AppSpawningCtx *CreateAppSpawningCtx(void) in CreateAppSpawningCtx()
281 AppSpawningCtx *property = (AppSpawningCtx *)malloc(sizeof(AppSpawningCtx)); in CreateAppSpawningCtx()
303 void DeleteAppSpawningCtx(AppSpawningCtx *property) in DeleteAppSpawningCtx()
335 AppSpawningCtx *property = ListEntry(node, AppSpawningCtx, node); in AppPropertyComparePid()
342 AppSpawningCtx *GetAppSpawningCtxByPid(pid_t pid) in GetAppSpawningCtxByPid()
347 return ListEntry(node, AppSpawningCtx, node); in GetAppSpawningCtxByPid()
356 AppSpawningCtx *ctx = ListEntry(node, AppSpawningCtx, node); in AppSpawningCtxTraversal()
364 AppSpawningCtx *property = ListEntry(node, AppSpawningCtx, node); in DumpAppSpawnQueue()
H A Dappspawn_service.c528 static int InitForkContext(AppSpawningCtx *property) in InitForkContext()
613 static int IsChildColdRun(AppSpawningCtx *property) in IsChildColdRun()
622 static int AddChildWatcher(AppSpawningCtx *property) in AddChildWatcher()
668 static int WritePreforkMsg(AppSpawningCtx *property) in WritePreforkMsg()
689 static int GetAppSpawnMsg(AppSpawningCtx *property) in GetAppSpawnMsg()
802 AppSpawningCtx *property = (AppSpawningCtx *)client; in AppSpawnProcessMsgForPrefork()
845 AppSpawningCtx *property = (AppSpawningCtx *)client; in IsSupportPrefork()
952 AppSpawningCtx *property = (AppSpawningCtx *)context; in WaitChildTimeout()
986 AppSpawningCtx *property = (AppSpawningCtx *)context; in ProcessChildResponse()
1037 AppSpawningCtx *property = (AppSpawningCtx *)client; in NotifyResToParent()
[all …]
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_sandbox_test.cpp56 static AppSpawningCtx *GetTestAppProperty() in GetTestAppProperty()
90 AppSpawningCtx *appProperty = GetTestAppProperty();
108 AppSpawningCtx *appProperty = GetTestAppProperty();
121 AppSpawningCtx *appProperty = GetTestAppProperty();
135 AppSpawningCtx *appProperty = GetTestAppProperty();
150 AppSpawningCtx *appProperty = GetTestAppProperty();
164 AppSpawningCtx *appProperty = GetTestAppProperty();
206 AppSpawningCtx *appProperty = GetTestAppProperty();
248 AppSpawningCtx *appProperty = GetTestAppProperty();
289 AppSpawningCtx *appProperty = GetTestAppProperty();
[all …]
H A Dapp_spawn_common_test.cpp66 AppSpawningCtx *property = nullptr;
93 AppSpawningCtx *property = nullptr;
120 AppSpawningCtx *property = nullptr;
150 AppSpawningCtx *property = nullptr;
182 AppSpawningCtx *property = nullptr;
214 AppSpawningCtx *property = nullptr;
246 AppSpawningCtx *property = nullptr;
268 AppSpawningCtx *property = nullptr;
290 AppSpawningCtx *property = nullptr;
312 AppSpawningCtx *property = nullptr;
[all …]
H A Dapp_spawn_child_test.cpp77 AppSpawningCtx *property = nullptr;
114 AppSpawningCtx *property = nullptr;
151 AppSpawningCtx *property = nullptr;
190 AppSpawningCtx *property = nullptr;
230 AppSpawningCtx *property = nullptr;
271 AppSpawningCtx *property = nullptr;
319 AppSpawningCtx *property = nullptr;
356 AppSpawningCtx *property = nullptr;
397 AppSpawningCtx *property = nullptr;
440 AppSpawningCtx *property = nullptr;
[all …]
H A Dapp_spawn_sandbox_new_test.cpp726 AppSpawningCtx *property = nullptr;
766 AppSpawningCtx *property = nullptr;
808 AppSpawningCtx *property = nullptr;
850 AppSpawningCtx *property = nullptr;
1157 AppSpawningCtx *property = nullptr;
1210 AppSpawningCtx *property = nullptr;
1262 AppSpawningCtx *property = nullptr;
1322 AppSpawningCtx *property = nullptr;
1373 AppSpawningCtx *property = nullptr;
1425 AppSpawningCtx *property = nullptr;
[all …]
H A Dapp_spawn_appmgr_test.cpp225 static void TestProcessTraversal(const AppSpawnMgr *mgr, AppSpawningCtx *ctx, void *data) in TestProcessTraversal()
231 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
266 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
839 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
886 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
922 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
978 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
1021 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
1070 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
1084 AppSpawningCtx *appCtx = CreateAppSpawningCtx();
H A Dapp_spawn_beget_test.cpp119 AppSpawningCtx *property = nullptr;
163 AppSpawningCtx *property = nullptr;
/ohos5.0/base/startup/appspawn/test/mock/
H A Dapp_spawn_stub.h38 typedef struct TagAppSpawningCtx AppSpawningCtx; typedef
62 int AppSpawnClearEnv(AppSpawnMgr *content, AppSpawningCtx *property);
64 int WriteMsgToChild(AppSpawningCtx *property, bool isNweb);
70 int SetProcessName(const AppSpawnMgr *content, const AppSpawningCtx *property);
71 int SetFdEnv(AppSpawnMgr *content, AppSpawningCtx *property);
77 int RunBegetctlBootApp(AppSpawnMgr *content, AppSpawningCtx *property);
98 int SetSelinuxConNweb(const AppSpawnMgr *content, const AppSpawningCtx *property);
99 void InitAppCommonEnv(const AppSpawningCtx *property);
/ohos5.0/base/startup/appspawn/test/moduletest/plugin-sample/
H A Dappspawn_plugin_sample.c45 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()
83 static int ChildPreRun(AppSpawnMgr *content, AppSpawningCtx *property) in ChildPreRun()
/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);
29 int SetSeccompFilter(const AppSpawnMgr *content, const AppSpawningCtx *property);
30 int SetInternetPermission(const AppSpawningCtx *property);
31 int32_t SetEnvInfo(const AppSpawnMgr *content, const AppSpawningCtx *property);
H A Dappspawn_common.c186 AppSpawningCtx *ctx = (AppSpawningCtx *)property; in ClearEnvironment()
228 static int SetUidGid(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetUidGid()
339 static int32_t WaitForDebugger(const AppSpawningCtx *property) in WaitForDebugger()
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()
450 static int SpawnComplete(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnComplete()
465 static int SpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *property) in SpawnGetSpawningFlag()
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()
149 int SetSeccompFilter(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetSeccompFilter()
178 int SetInternetPermission(const AppSpawningCtx *property) in SetInternetPermission()
191 APPSPAWN_STATIC void InitAppCommonEnv(const AppSpawningCtx *property) in InitAppCommonEnv()
205 int32_t SetEnvInfo(const AppSpawnMgr *content, const AppSpawningCtx *property) in SetEnvInfo()
H A Dappspawn_namespace.c238 static int PreForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property) in PreForkSetPidNamespace()
250 static int PostForkSetPidNamespace(AppSpawnMgr *content, AppSpawningCtx *property) in PostForkSetPidNamespace()
/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/test/unittest/app_spawn_client_test/
H A Dapp_spawn_client_test.cpp227 AppSpawningCtx *property = nullptr;
262 AppSpawningCtx *property = nullptr;
302 AppSpawningCtx *property = nullptr;
342 AppSpawningCtx *property = nullptr;
380 AppSpawningCtx *property = nullptr;
416 AppSpawningCtx *property = nullptr;
452 AppSpawningCtx *property = nullptr;
488 AppSpawningCtx *property = nullptr;
523 AppSpawningCtx *property = nullptr;
575 AppSpawningCtx *property = nullptr;
[all …]
/ohos5.0/base/startup/appspawn/modules/native_adapter/
H A Dnative_adapter.cpp81 static int RunChildThread(const AppSpawnMgr *content, const AppSpawningCtx *property) in RunChildThread()
104 AppSpawningCtx *property = reinterpret_cast<AppSpawningCtx *>(client); in RunChildProcessor()
/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()
244 AppSpawningCtx *property = reinterpret_cast<AppSpawningCtx *>(client); in RunChildProcessor()
/ohos5.0/base/startup/appspawn/modules/module_engine/include/
H A Dappspawn_hook.h35 typedef struct TagAppSpawningCtx AppSpawningCtx; typedef
101 typedef int (*AppSpawnHook)(AppSpawnMgr *content, AppSpawningCtx *property);
/ohos5.0/base/startup/appspawn/modules/nweb_adapter/
H A Dnwebspawn_adapter.cpp93 reinterpret_cast<AppSpawningCtx *>(client), MSG_EXT_NAME_RENDER_CMD, &len)); in RunChildProcessor()
133 reinterpret_cast<AppSpawningCtx *>(client), MSG_EXT_NAME_PROCESS_TYPE, &len)); in RunChildProcessor()
/ohos5.0/base/startup/appspawn/common/
H A Dappspawn_server.c161 AppSpawningCtx *property = (AppSpawningCtx *)client; in NwebSpawnCloneChildProcess()

12