Home
last modified time | relevance | path

Searched refs:SandboxSection (Results 1 - 9 of 9) sorted by relevance

/base/startup/appspawn/modules/sandbox/
H A Dappspawn_sandbox.h152 } SandboxSection; typedef
155 SandboxSection section;
159 SandboxSection section;
164 SandboxSection section;
172 SandboxSection section;
180 SandboxQueue packageNameQueue; // SandboxSection
239 * @brief SandboxSection op
242 SandboxSection *CreateSandboxSection(const char *name, uint32_t dataLen, uint32_t type);
243 SandboxSection *GetSandboxSection(const SandboxQueue *queue, const char *name);
244 void AddSandboxSection(SandboxSection *nod
[all...]
H A Dsandbox_manager.c78 void AddSandboxMountNode(SandboxMountNode *node, SandboxSection *queue) in AddSandboxMountNode()
103 PathMountNode *GetPathMountNode(const SandboxSection *section, int type, const char *source, const char *target) in GetPathMountNode()
118 SymbolLinkNode *GetSymbolLinkNode(const SandboxSection *section, const char *target, const char *linkName) in GetSymbolLinkNode()
153 SandboxMountNode *GetFirstSandboxMountNode(const SandboxSection *section) in GetFirstSandboxMountNode()
194 static inline void InitSandboxSection(SandboxSection *section, int type) in InitSandboxSection()
208 static void ClearSandboxSection(SandboxSection *section) in ClearSandboxSection()
256 static void DumpSandboxSection(const SandboxSection *section) in DumpSandboxSection()
275 SandboxSection *CreateSandboxSection(const char *name, uint32_t dataLen, uint32_t type) in CreateSandboxSection()
280 APPSPAWN_CHECK(dataLen >= sizeof(SandboxSection), return NULL, "Invalid dataLen %{public}u", dataLen); in CreateSandboxSection()
282 SandboxSection *sectio in CreateSandboxSection()
[all...]
H A Dsandbox_load.c205 static PathMountNode *DecodeMountPathConfig(const SandboxSection *section, const cJSON *config, uint32_t type) in DecodeMountPathConfig()
246 const cJSON *mountConfigs, SandboxSection *section, uint32_t type) in ParseMountPathsConfig()
263 static SymbolLinkNode *DecodeSymbolLinksConfig(const SandboxSection *section, const cJSON *config) in DecodeSymbolLinksConfig()
292 SandboxSection *section) in ParseSymbolLinksConfig()
308 APPSPAWN_STATIC int ParseGidTableConfig(AppSpawnSandboxCfg *sandbox, const cJSON *configs, SandboxSection *section) in ParseGidTableConfig()
341 static int ParseMountGroupsConfig(AppSpawnSandboxCfg *sandbox, const cJSON *groupConfig, SandboxSection *section) in ParseMountGroupsConfig()
400 static int ParseBaseConfig(AppSpawnSandboxCfg *sandbox, SandboxSection *section, const cJSON *configs) in ParseBaseConfig()
456 DeleteSandboxSection((SandboxSection *)node); in ParsePackageNameConfig()
477 DeleteSandboxSection((SandboxSection *)node); in ParseSpawnFlagsConfig()
496 DeleteSandboxSection((SandboxSection *)nod in ParsePermissionConfig()
[all...]
H A Dappspawn_sandbox.c238 static VarExtraData *GetVarExtraData(const SandboxContext *context, const SandboxSection *section) in GetVarExtraData()
266 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation) in CheckSandboxMountNode()
437 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation) in DoSandboxPathNodeMount()
484 const SandboxSection *section, const SymbolLinkNode *sandboxNode) in DoSandboxPathSymLink()
514 static int DoSandboxNodeMount(const SandboxContext *context, const SandboxSection *section, uint32_t operation) in DoSandboxNodeMount()
710 const AppSpawnSandboxCfg *sandbox, const SandboxSection *section, uint32_t op) in MountSandboxConfig()
981 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, name); in UnmountSandboxConfigs()
1049 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const"); in StagedMountSystemConst()
1095 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const"); in SetSystemConstDepGroups()
1114 SandboxSection *sectio in SetAppVariableDepGroups()
[all...]
H A Dappspawn_permission.c90 DeleteSandboxSection((SandboxSection *)sandboxNode); in DeleteSandboxPermissions()
/base/startup/appspawn/test/mock/
H A Dapp_spawn_stub.h51 typedef struct TagSandboxSection SandboxSection; typedef
80 const cJSON *mountConfigs, SandboxSection *section, uint32_t type);
82 SandboxSection *section);
83 int ParseGidTableConfig(AppSpawnSandboxCfg *sandbox, const cJSON *configs, SandboxSection *section);
95 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation);
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_sandboxmgr_test.cpp148 sizeof(SandboxSection), in HWTEST_F()
163 SandboxSection *section = CreateSandboxSection(name, len, type); in HWTEST_F()
195 sizeof(SandboxSection), in HWTEST_F()
204 SandboxSection *section = CreateSandboxSection(inputName[i], inputDataLen[j], 0); in HWTEST_F()
227 SandboxSection *section = CreateSandboxSection("system-const", sizeof(SandboxSection), SANDBOX_TAG_SYSTEM_CONST); in HWTEST_F()
257 SandboxSection *section = GetSandboxSection(nullptr, "system-const"); in HWTEST_F()
295 SandboxSection *section = CreateSandboxSection("system-const", sizeof(SandboxSection), SANDBOX_TAG_SYSTEM_CONST); in HWTEST_F()
330 SandboxSection *sectio in HWTEST_F()
[all...]
H A Dapp_spawn_sandbox_new_test.cpp274 static inline SandboxMountNode *GetFirstSandboxMountPathNode(const SandboxSection *section) in GetFirstSandboxMountPathNode()
284 static inline SandboxMountNode *GetNextSandboxMountPathNode(const SandboxSection *section, SandboxMountNode *pathNode) in GetNextSandboxMountPathNode()
946 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const"); in HWTEST_F()
1285 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "app-variable"); in HWTEST_F()
2280 const SandboxSection section = {node, front, name, 16, 16, nullptr, 1, 1, nullptr}; in HWTEST_F()
2300 const SandboxSection section = {node, front, name, 16, 16, nullptr, 1, 1, nullptr}; in HWTEST_F()
H A Dapp_spawn_sandbox_new_mount_test.cpp692 SandboxSection section = {}; in HWTEST_F()

Completed in 13 milliseconds