/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
D | app_spawn_sandbox_new_test.cpp | 276 APPSPAWN_CHECK_ONLY_EXPER(section != nullptr, return nullptr); in GetFirstSandboxMountPathNode() 286 APPSPAWN_CHECK_ONLY_EXPER(section != nullptr && pathNode != nullptr, return nullptr); in GetNextSandboxMountPathNode() 351 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, break); in TestParseAppSandboxConfig() 354 APPSPAWN_CHECK_ONLY_EXPER(depNodeCount > 0, break); in TestParseAppSandboxConfig() 684 APPSPAWN_CHECK_ONLY_EXPER(sandbox != nullptr, break); 701 APPSPAWN_CHECK_ONLY_EXPER(node == nullptr, break); 703 APPSPAWN_CHECK_ONLY_EXPER(node == nullptr, break); 732 APPSPAWN_CHECK_ONLY_EXPER(sandbox != nullptr, break); 752 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 772 APPSPAWN_CHECK_ONLY_EXPER(sandbox != nullptr, break); [all …]
|
D | app_spawn_cgroup_test.cpp | 116 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, break); 118 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 124 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, break); 128 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, break); 169 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 196 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 231 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 260 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, break); 262 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 267 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, break); [all …]
|
D | app_spawn_child_test.cpp | 62 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, return nullptr); in CreateTestAppSpawnContent() 86 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 91 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 128 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 133 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 167 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 172 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 209 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 212 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 249 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); [all …]
|
D | app_spawn_beget_test.cpp | 134 APPSPAWN_CHECK_ONLY_EXPER(content != nullptr, break); 147 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break);
|
/base/startup/appspawn/modules/sandbox/ |
D | appspawn_mount_template.c | 87 APPSPAWN_CHECK_ONLY_EXPER(name != NULL, return MOUNT_TMP_DEFAULT); in GetMountCategory() 113 APPSPAWN_CHECK_ONLY_EXPER(key != NULL, return NULL); in GetSandboxFlagInfo() 114 APPSPAWN_CHECK_ONLY_EXPER(flagsInfos != NULL, return NULL); in GetSandboxFlagInfo() 125 APPSPAWN_CHECK_ONLY_EXPER(name != NULL, return 0); in GetPathMode() 147 APPSPAWN_CHECK_ONLY_EXPER(len > 0, return); in DumpSandboxFlags() 152 APPSPAWN_CHECK_ONLY_EXPER(len > 0, return); in DumpSandboxFlags() 159 APPSPAWN_CHECK_ONLY_EXPER(info != NULL, return); in DumpMode() 167 APPSPAWN_CHECK_ONLY_EXPER(info != NULL, return); in DumpMountFlags()
|
D | sandbox_load.c | 199 APPSPAWN_CHECK_ONLY_EXPER(config != NULL, return); in FillPathDemandInfo() 220 APPSPAWN_CHECK_ONLY_EXPER(sandboxNode != NULL, return NULL); in DecodeMountPathConfig() 247 APPSPAWN_CHECK_ONLY_EXPER(mountConfigs != NULL && cJSON_IsArray(mountConfigs), return -1); in ParseMountPathsConfig() 256 APPSPAWN_CHECK_ONLY_EXPER(sandboxNode != NULL, continue); in ParseMountPathsConfig() 277 APPSPAWN_CHECK_ONLY_EXPER(node != NULL, return NULL); in DecodeSymbolLinksConfig() 292 …APPSPAWN_CHECK_ONLY_EXPER(symbolLinkConfigs != NULL && cJSON_IsArray(symbolLinkConfigs), return -1… in ParseSymbolLinksConfig() 300 APPSPAWN_CHECK_ONLY_EXPER(node != NULL, return -1); in ParseSymbolLinksConfig() 310 APPSPAWN_CHECK_ONLY_EXPER(arrayLen > 0, return 0); in ParseGidTableConfig() 347 APPSPAWN_CHECK_ONLY_EXPER(count > 0, return 0); in ParseMountGroupsConfig() 400 APPSPAWN_CHECK_ONLY_EXPER(configs != NULL, return 0); in ParseBaseConfig() [all …]
|
D | sandbox_manager.c | 80 APPSPAWN_CHECK_ONLY_EXPER(node != NULL, return); in AddSandboxMountNode() 81 APPSPAWN_CHECK_ONLY_EXPER(queue != NULL, return); in AddSandboxMountNode() 105 APPSPAWN_CHECK_ONLY_EXPER(section != NULL, return NULL); in GetPathMountNode() 106 APPSPAWN_CHECK_ONLY_EXPER(source != NULL && target != NULL, return NULL); in GetPathMountNode() 120 APPSPAWN_CHECK_ONLY_EXPER(section != NULL, return NULL); in GetSymbolLinkNode() 121 APPSPAWN_CHECK_ONLY_EXPER(linkName != NULL && target != NULL, return NULL); in GetSymbolLinkNode() 135 APPSPAWN_CHECK_ONLY_EXPER(sandboxNode != NULL, return); in DeleteSandboxMountNode() 163 APPSPAWN_CHECK_ONLY_EXPER(sandboxNode != NULL, return); in DumpSandboxMountNode() 309 APPSPAWN_CHECK_ONLY_EXPER(name != NULL && queue != NULL, return NULL); in GetSandboxSection() 319 APPSPAWN_CHECK_ONLY_EXPER(node != NULL && queue != NULL, return); in AddSandboxSection() [all …]
|
D | appspawn_sandbox.c | 164 APPSPAWN_CHECK_ONLY_EXPER(context != NULL, return); in DeleteSandboxContext() 570 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SetSandboxPackageNameConfig() 587 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SetSandboxSpawnFlagsConfig() 607 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SetSandboxPermissionConfig() 619 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SetOverlayAppSandboxConfig() 747 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return -1); in UnmountDepPaths() 767 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return -1); in UnmountSandboxConfigs() 790 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return 0); in UnmountSandboxConfigs() 816 APPSPAWN_CHECK_ONLY_EXPER(context != NULL, return APPSPAWN_SYSTEM_ERROR); in StagedMountSystemConst() 818 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in StagedMountSystemConst() [all …]
|
D | appspawn_permission.c | 54 APPSPAWN_CHECK_ONLY_EXPER(name != NULL && queue != NULL, return APPSPAWN_ARG_INVALID); in AddSandboxPermissionNode() 83 APPSPAWN_CHECK_ONLY_EXPER(queue != NULL, return APPSPAWN_ARG_INVALID); in DeleteSandboxPermissions() 102 APPSPAWN_CHECK_ONLY_EXPER(queue != NULL, return -1); in PermissionRenumber() 140 APPSPAWN_CHECK_ONLY_EXPER(queue != NULL && permission != NULL, return INVALID_PERMISSION_INDEX); in GetPermissionIndexInQueue()
|
D | sandbox_expand.c | 205 APPSPAWN_CHECK_ONLY_EXPER(root != NULL, return 0); in ProcessHSPListConfig() 214 APPSPAWN_CHECK_ONLY_EXPER(root != NULL, return 0); in ProcessDataGroupConfig() 257 APPSPAWN_CHECK_ONLY_EXPER(name != NULL && handleExpandCfg != NULL, return APPSPAWN_ARG_INVALID); in RegisterExpandSandboxCfgHandler() 278 APPSPAWN_CHECK_ONLY_EXPER(context != NULL && appSandBox != NULL, return APPSPAWN_ARG_INVALID); in ProcessExpandAppSandboxConfig() 279 APPSPAWN_CHECK_ONLY_EXPER(name != NULL, return APPSPAWN_ARG_INVALID); in ProcessExpandAppSandboxConfig()
|
/base/startup/appspawn/standard/ |
D | appspawn_appmgr.c | 39 APPSPAWN_CHECK_ONLY_EXPER(mode < MODE_INVALID, return NULL); in CreateAppSpawnMgr() 88 APPSPAWN_CHECK_ONLY_EXPER(mgr != NULL, return); in DeleteAppSpawnMgr() 103 APPSPAWN_CHECK_ONLY_EXPER(g_appSpawnMgr != NULL && traversal != NULL, return); in TraversalSpawnedProcess() 158 APPSPAWN_CHECK_ONLY_EXPER(g_appSpawnMgr != NULL && node != NULL, return); in TerminateSpawnedProcess() 180 APPSPAWN_CHECK_ONLY_EXPER(g_appSpawnMgr != NULL, return NULL); in GetSpawnedProcess() 182 APPSPAWN_CHECK_ONLY_EXPER(node != NULL, return NULL); in GetSpawnedProcess() 188 APPSPAWN_CHECK_ONLY_EXPER(g_appSpawnMgr != NULL, return NULL); in GetSpawnedProcessByName() 189 APPSPAWN_CHECK_ONLY_EXPER(name != NULL, return NULL); in GetSpawnedProcessByName() 192 APPSPAWN_CHECK_ONLY_EXPER(node != NULL, return NULL); in GetSpawnedProcessByName() 198 APPSPAWN_CHECK_ONLY_EXPER(exitStatus != NULL, return 0); in KillAndWaitStatus() [all …]
|
D | appspawn_msgmgr.c | 30 APPSPAWN_CHECK_ONLY_EXPER(message != NULL && message->buffer != NULL, return NULL); in GetAppSpawnMsgInfo() 31 APPSPAWN_CHECK_ONLY_EXPER(message->tlvOffset != NULL, return NULL); in GetAppSpawnMsgInfo() 32 APPSPAWN_CHECK_ONLY_EXPER(message->tlvOffset[type] != INVALID_OFFSET, return NULL); in GetAppSpawnMsgInfo() 39 APPSPAWN_CHECK_ONLY_EXPER(message != NULL && message->buffer != NULL, return NULL); in GetAppSpawnMsgExtInfo() 40 APPSPAWN_CHECK_ONLY_EXPER(message->tlvOffset != NULL, return NULL); in GetAppSpawnMsgExtInfo() 133 APPSPAWN_CHECK_ONLY_EXPER(CheckRecvMsg(&message->msgHeader) == 0, return APPSPAWN_MSG_INVALID); in AppSpawnMsgRebuild() 180 APPSPAWN_CHECK_ONLY_EXPER(message != NULL, return APPSPAWN_MSG_INVALID); in CheckAppSpawnMsg() 259 APPSPAWN_CHECK_ONLY_EXPER(message != NULL, return APPSPAWN_MSG_INVALID); in DecodeAppSpawnMsg() 273 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, break); in DecodeAppSpawnMsg() 286 APPSPAWN_CHECK_ONLY_EXPER(currLen >= bufferLen, return APPSPAWN_MSG_INVALID); in DecodeAppSpawnMsg() [all …]
|
/base/startup/appspawn/interfaces/innerkits_new/client/ |
D | appspawn_msg.c | 164 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in AddAppDataEx() 203 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in AddAppData() 268 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in CreateBaseMsg() 269 …APPSPAWN_CHECK_ONLY_EXPER(msgType == MSG_APP_SPAWN || msgType == MSG_SPAWN_NATIVE_PROCESS, return … in CreateBaseMsg() 273 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in CreateBaseMsg() 280 APPSPAWN_CHECK_ONLY_EXPER(reqNode != NULL, return); in DeleteAppSpawnReqMsg() 334 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in AppSpawnReqMsgCreate() 345 APPSPAWN_CHECK_ONLY_EXPER(reqNode != NULL, return); in AppSpawnReqMsgFree() 352 APPSPAWN_CHECK_ONLY_EXPER(reqNode != NULL, return APPSPAWN_ARG_INVALID); in AppSpawnReqMsgSetAppDacInfo() 368 APPSPAWN_CHECK_ONLY_EXPER(reqNode != NULL, return APPSPAWN_ARG_INVALID); in AppSpawnReqMsgSetBundleInfo() [all …]
|
/base/startup/appspawn/modules/common/ |
D | appspawn_common.c | 342 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnInitSpawningEnv() 349 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnInitSpawningEnv() 357 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnSetAppEnv() 371 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnEnableCache() 388 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnSetProperties() 390 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnSetProperties() 393 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnSetProperties() 396 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnSetProperties() 399 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnSetProperties() 402 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in SpawnSetProperties() [all …]
|
D | appspawn_cgroup.c | 114 APPSPAWN_CHECK_ONLY_EXPER(content != NULL, return -1); in ProcessMgrRemoveApp() 115 APPSPAWN_CHECK_ONLY_EXPER(appInfo != NULL, return -1); in ProcessMgrRemoveApp() 131 APPSPAWN_CHECK_ONLY_EXPER(content != NULL, return -1); in ProcessMgrAddApp() 132 APPSPAWN_CHECK_ONLY_EXPER(appInfo != NULL, return -1); in ProcessMgrAddApp()
|
D | appspawn_namespace.c | 50 APPSPAWN_CHECK_ONLY_EXPER(content != NULL, return NULL); in GetAppSpawnNamespace() 61 APPSPAWN_CHECK_ONLY_EXPER(namespace != NULL, return); in DeleteAppSpawnNamespace() 80 APPSPAWN_CHECK_ONLY_EXPER(namespace != NULL, return); in FreeAppSpawnNamespace()
|
D | appspawn_begetctl.c | 70 APPSPAWN_CHECK_ONLY_EXPER(property != NULL, return -1); in RunBegetctlBootApp()
|
/base/startup/appspawn/util/src/ |
D | appspawn_utils.c | 104 APPSPAWN_CHECK_ONLY_EXPER(startTime != NULL, return 0); in DiffTime() 105 APPSPAWN_CHECK_ONLY_EXPER(endTime != NULL, return 0); in DiffTime() 205 APPSPAWN_CHECK_ONLY_EXPER(str != NULL, return NULL); in GetLastStr() 206 APPSPAWN_CHECK_ONLY_EXPER(dst != NULL, return NULL); in GetLastStr() 260 APPSPAWN_CHECK_ONLY_EXPER(jsonPath != NULL && *jsonPath != '\0', NULL); in GetJsonObjFromFile() 262 APPSPAWN_CHECK_ONLY_EXPER(buffer != NULL, NULL); in GetJsonObjFromFile() 270 APPSPAWN_CHECK_ONLY_EXPER(basePath != NULL, return APPSPAWN_ARG_INVALID); in ParseJsonConfig() 271 APPSPAWN_CHECK_ONLY_EXPER(fileName != NULL, return APPSPAWN_ARG_INVALID); in ParseJsonConfig() 272 APPSPAWN_CHECK_ONLY_EXPER(parseConfig != NULL, return APPSPAWN_ARG_INVALID); in ParseJsonConfig() 303 APPSPAWN_CHECK_ONLY_EXPER(buffer != NULL, return); in DumpCurrentDir() [all …]
|
/base/startup/appspawn/util/include/ |
D | json_utils.h | 36 APPSPAWN_CHECK_ONLY_EXPER(key != NULL && json != NULL, NULL); in GetStringFromJsonObj() 39 APPSPAWN_CHECK_ONLY_EXPER(obj != NULL, return NULL); in GetStringFromJsonObj() 47 APPSPAWN_CHECK_ONLY_EXPER(value != NULL, return def); in GetBoolValueFromJsonObj()
|
/base/startup/appspawn/interfaces/innerkits_new/permission/ |
D | appspawn_mount_permission.c | 57 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in ParseAppSandboxConfig() 64 APPSPAWN_CHECK_ONLY_EXPER(type < CLIENT_MAX, return NULL); in GetPermissionMgrByType() 77 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, return ret); in ParsePermissionConfig() 99 APPSPAWN_CHECK_ONLY_EXPER(type < CLIENT_MAX, return NULL); in GetPermissionMgrByType() 125 APPSPAWN_CHECK_ONLY_EXPER(CheckPermissionManager(mgr), return INVALID_PERMISSION_INDEX); in PMGetPermissionIndex() 132 APPSPAWN_CHECK_ONLY_EXPER(CheckPermissionManager(mgr), return INVALID_PERMISSION_INDEX); in PMGetMaxPermissionIndex() 139 APPSPAWN_CHECK_ONLY_EXPER(CheckPermissionManager(mgr), return NULL); in PMGetPermissionByIndex()
|
/base/startup/appspawn/adapter/ |
D | appspawn_cgroup.c | 128 APPSPAWN_CHECK_ONLY_EXPER(content != NULL, return -1); in ProcessAppDied() 129 APPSPAWN_CHECK_ONLY_EXPER(appInfo != NULL, return -1); in ProcessAppDied() 142 APPSPAWN_CHECK_ONLY_EXPER(content != NULL, return -1); in ProcessAppAdd() 143 APPSPAWN_CHECK_ONLY_EXPER(appInfo != NULL, return -1); in ProcessAppAdd()
|
/base/startup/appspawn/common/ |
D | appspawn_server.c | 69 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, in AppSpawnChild() 82 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, in AppSpawnChild() 88 APPSPAWN_CHECK_ONLY_EXPER(ret == 0, in AppSpawnChild()
|
/base/startup/appspawn/test/moduletest/ |
D | appspawn_test_cmder.cpp | 147 APPSPAWN_CHECK_ONLY_EXPER(array != NULL, return 0); in GetUint32ArrayFromJson() 165 APPSPAWN_CHECK_ONLY_EXPER(config, return 0); in AddBundleInfoFromJson() 177 APPSPAWN_CHECK_ONLY_EXPER(config, return 0); in AddDacInfoFromJson() 195 APPSPAWN_CHECK_ONLY_EXPER(config, return 0); in AddInternetPermissionInfoFromJson() 205 APPSPAWN_CHECK_ONLY_EXPER(config, return 0); in AddAccessTokenFromJson() 214 APPSPAWN_CHECK_ONLY_EXPER(config, return 0); in AddDomainInfoFromJson() 226 APPSPAWN_CHECK_ONLY_EXPER(configs != nullptr, return 0); in AddExtTlv()
|
/base/startup/appspawn/test/unittest/app_spawn_client_test/ |
D | app_spawn_client_test.cpp | 236 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 276 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 318 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 356 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 390 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 427 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 462 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 512 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 564 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); 616 APPSPAWN_CHECK_ONLY_EXPER(property != nullptr, break); [all …]
|
/base/startup/appspawn/interfaces/innerkits/src/ |
D | appspawn_mount_permission.cpp | 65 APPSPAWN_CHECK_ONLY_EXPER(jsonFileStream.is_open(), return); in LoadPermissionNames()
|