Lines Matching refs:content

66 static int SetProcessName(const AppSpawnMgr *content, const AppSpawningCtx *property)
88 isRet = memset_s(content->content.longProcName,
89 (size_t)content->content.longProcNameLen, 0, (size_t)content->content.longProcNameLen) != EOK;
93 isRet = strncpy_s(content->content.longProcName, content->content.longProcNameLen, processName, len) != EOK;
95 "strncpy_s long name error: %{public}d longProcNameLen %{public}u", errno, content->content.longProcNameLen);
99 static int SetKeepCapabilities(const AppSpawnMgr *content, const AppSpawningCtx *property)
113 static int SetCapabilities(const AppSpawnMgr *content, const AppSpawningCtx *property)
152 static void InitDebugParams(const AppSpawnMgr *content, const AppSpawningCtx *property)
177 static void ClearEnvironment(const AppSpawnMgr *content, const AppSpawningCtx *property)
191 static int SetXpmConfig(const AppSpawnMgr *content, const AppSpawningCtx *property)
195 if (IsNWebSpawnMode(content)) {
227 static int SetUidGid(const AppSpawnMgr *content, const AppSpawningCtx *property)
239 if (IsNWebSpawnMode(content)) {
252 ret = SetSeccompFilter(content, property);
273 static int32_t SetFileDescriptors(const AppSpawnMgr *content, const AppSpawningCtx *property)
356 static int SpawnInitSpawningEnv(AppSpawnMgr *content, AppSpawningCtx *property)
359 int ret = SetProcessName(content, property);
362 ClearEnvironment(content, property);
366 ret = SetAppAccessToken(content, property);
371 static int SpawnSetAppEnv(AppSpawnMgr *content, AppSpawningCtx *property)
374 int ret = SetEnvInfo(content, property);
379 static int SpawnSetIntPermission(AppSpawnMgr *content, AppSpawningCtx *property)
387 static void SpawnLoadSilk(const AppSpawnMgr *content, const AppSpawningCtx *property)
394 static int SpawnSetProperties(AppSpawnMgr *content, AppSpawningCtx *property)
397 SpawnLoadSilk(content, property);
399 int ret = SetKeepCapabilities(content, property);
401 ret = SetXpmConfig(content, property);
404 ret = SetProcessName(content, property);
407 ret = SetUidGid(content, property);
410 ret = SetFileDescriptors(content, property);
413 ret = SetCapabilities(content, property);
416 ret = SetSelinuxCon(content, property) == -1;
429 static int PreLoadSetSeccompFilter(AppSpawnMgr *content)
432 int ret = SetUidGidFilter(content);
437 static int SpawnComplete(AppSpawnMgr *content, AppSpawningCtx *property)
439 InitDebugParams(content, property);
452 static int SpawnGetSpawningFlag(AppSpawnMgr *content, AppSpawningCtx *property)
464 property->client.flags |= content->flags;
468 static int SpawnLoadConfig(AppSpawnMgr *content)
472 content->flags |= CheckEnabled("const.security.developermode.state", "true") ? APP_DEVELOPER_MODE : 0;
473 content->flags |= CheckEnabled("persist.security.jitfort.disabled", "true") ? 0 : APP_JITFORT_MODE;
477 static int CloseFdArgs(AppSpawnMgr *content, AppSpawningCtx *property)
495 APPSPAWN_STATIC int SetFdEnv(AppSpawnMgr *content, AppSpawningCtx *property)