Lines Matching refs:SandboxUtils

187 std::map<SandboxConfigType, std::vector<nlohmann::json>> SandboxUtils::appSandboxConfig_ = {};
188 int32_t SandboxUtils::deviceTypeEnable_ = -1;
190 void SandboxUtils::StoreJsonConfig(nlohmann::json &appSandboxConfig, SandboxConfigType type)
192 SandboxUtils::appSandboxConfig_[type].push_back(appSandboxConfig);
195 std::vector<nlohmann::json> &SandboxUtils::GetJsonConfig(SandboxConfigType type)
197 return SandboxUtils::appSandboxConfig_[type];
258 int32_t SandboxUtils::DoAppSandboxMountOnce(const char *originPath, const char *destinationPath,
327 void SandboxUtils::DoSandboxChmod(nlohmann::json jsonConfig, std::string &sandboxRoot)
351 unsigned long SandboxUtils::GetMountFlagsFromConfig(const std::vector<std::string> &vec)
462 std::string accountId = SandboxUtils::GetExtraInfoByType(appProperty, MSG_EXT_NAME_ACCOUNT_ID);
478 string SandboxUtils::ConvertToRealPath(const AppSpawningCtx *appProperty, std::string path)
516 std::string SandboxUtils::ConvertToRealPathWithPermission(const AppSpawningCtx *appProperty,
548 bool SandboxUtils::GetSandboxDacOverrideEnable(nlohmann::json &config)
561 std::string SandboxUtils::GetSbxPathByConfig(const AppSpawningCtx *appProperty, nlohmann::json &config)
589 bool SandboxUtils::GetSbxSwitchStatusByConfig(nlohmann::json &config)
714 unsigned long SandboxUtils::GetSandboxMountFlags(nlohmann::json &config)
725 std::string SandboxUtils::GetSandboxFsType(nlohmann::json &config)
734 std::string SandboxUtils::GetSandboxOptions(const AppSpawningCtx *appProperty, nlohmann::json &config)
750 void SandboxUtils::GetSandboxMountConfig(const AppSpawningCtx *appProperty, const std::string &section,
763 std::string SandboxUtils::GetSandboxPath(const AppSpawningCtx *appProperty, nlohmann::json &mntPoint,
787 int SandboxUtils::DoAllMntPointsMount(const AppSpawningCtx *appProperty,
837 int32_t SandboxUtils::DoAddGid(AppSpawningCtx *appProperty, nlohmann::json &appConfig,
861 int SandboxUtils::DoAllSymlinkPointslink(const AppSpawningCtx *appProperty, nlohmann::json &appConfig)
901 int32_t SandboxUtils::DoSandboxFilePrivateBind(const AppSpawningCtx *appProperty,
915 int32_t SandboxUtils::DoSandboxFilePermissionBind(AppSpawningCtx *appProperty,
939 std::set<std::string> SandboxUtils::GetMountPermissionNames()
942 for (auto& config : SandboxUtils::GetJsonConfig(SANBOX_APP_JSON_CONFIG)) {
955 int32_t SandboxUtils::DoSandboxFilePrivateSymlink(const AppSpawningCtx *appProperty,
967 int32_t SandboxUtils::HandleFlagsPoint(const AppSpawningCtx *appProperty,
994 int32_t SandboxUtils::DoSandboxFilePrivateFlagsPointHandle(const AppSpawningCtx *appProperty,
1006 int32_t SandboxUtils::DoSandboxFileCommonFlagsPointHandle(const AppSpawningCtx *appProperty,
1017 int32_t SandboxUtils::DoSandboxFileCommonBind(const AppSpawningCtx *appProperty, nlohmann::json &wholeConfig)
1036 int32_t SandboxUtils::DoSandboxFileCommonSymlink(const AppSpawningCtx *appProperty,
1056 int32_t SandboxUtils::SetPrivateAppSandboxProperty_(const AppSpawningCtx *appProperty,
1071 int32_t SandboxUtils::SetPermissionAppSandboxProperty_(AppSpawningCtx *appProperty,
1080 int32_t SandboxUtils::SetRenderSandboxProperty(const AppSpawningCtx *appProperty,
1086 int32_t SandboxUtils::SetRenderSandboxPropertyNweb(const AppSpawningCtx *appProperty,
1092 for (auto& config : SandboxUtils::GetJsonConfig(type)) {
1109 int32_t SandboxUtils::SetPrivateAppSandboxProperty(const AppSpawningCtx *appProperty)
1115 for (auto& config : SandboxUtils::GetJsonConfig(type)) {
1128 for (auto& config : SandboxUtils::GetJsonConfig(type)) {
1143 int32_t SandboxUtils::SetPermissionAppSandboxProperty(AppSpawningCtx *appProperty)
1149 for (auto& config : SandboxUtils::GetJsonConfig(type)) {
1157 int32_t SandboxUtils::SetCommonAppSandboxProperty_(const AppSpawningCtx *appProperty,
1177 int32_t SandboxUtils::SetCommonAppSandboxProperty(const AppSpawningCtx *appProperty,
1184 for (auto& jsonConfig : SandboxUtils::GetJsonConfig(type)) {
1216 std::string SandboxUtils::GetExtraInfoByType(const AppSpawningCtx *appProperty, const std::string &type)
1226 int32_t SandboxUtils::MountAllHsp(const AppSpawningCtx *appProperty, std::string &sandboxPackagePath)
1265 int32_t SandboxUtils::DoSandboxRootFolderCreateAdapt(std::string &sandboxPackagePath)
1282 int32_t SandboxUtils::MountAllGroup(const AppSpawningCtx *appProperty, std::string &sandboxPackagePath)
1327 int32_t SandboxUtils::DoSandboxRootFolderCreate(const AppSpawningCtx *appProperty,
1342 uint32_t SandboxUtils::GetSandboxNsFlags(bool isNweb)
1353 for (auto& config : SandboxUtils::GetJsonConfig(SANBOX_APP_JSON_CONFIG)) {
1384 bool SandboxUtils::CheckBundleNameForPrivate(const std::string &bundleName)
1392 bool SandboxUtils::CheckTotalSandboxSwitchStatus(const AppSpawningCtx *appProperty)
1397 for (auto& wholeConfig : SandboxUtils::GetJsonConfig(type)) {
1411 bool SandboxUtils::CheckAppSandboxSwitchStatus(const AppSpawningCtx *appProperty)
1417 for (auto& wholeConfig : SandboxUtils::GetJsonConfig(type)) {
1445 int32_t SandboxUtils::SetOverlayAppSandboxProperty(const AppSpawningCtx *appProperty,
1482 int32_t SandboxUtils::SetBundleResourceAppSandboxProperty(const AppSpawningCtx *appProperty,
1497 int32_t SandboxUtils::CheckAppFullMountEnable()
1516 int32_t SandboxUtils::SetSandboxProperty(AppSpawningCtx *appProperty, std::string &sandboxPackagePath)
1543 int32_t SandboxUtils::ChangeCurrentDir(std::string &sandboxPackagePath, const std::string &bundleName,
1579 int32_t SandboxUtils::SetPermissionWithParam(AppSpawningCtx *appProperty)
1598 void SandboxUtils::MountDevShmPath(std::string &sandboxPath)
1608 int32_t SandboxUtils::SetAppSandboxProperty(AppSpawningCtx *appProperty, uint32_t sandboxNsFlags)
1662 int32_t SandboxUtils::SetAppSandboxPropertyNweb(AppSpawningCtx *appProperty, uint32_t sandboxNsFlags)
1755 OHOS::AppSpawn::SandboxUtils::StoreJsonConfig(appSandboxConfig, SANBOX_APP_JSON_CONFIG);
1761 OHOS::AppSpawn::SandboxUtils::StoreJsonConfig(appSandboxConfig, SANBOX_ISOLATED_JSON_CONFIG);
1768 content->content.sandboxNsFlags = OHOS::AppSpawn::SandboxUtils::GetSandboxNsFlags(isNweb);
1795 ret = OHOS::AppSpawn::SandboxUtils::SetAppSandboxPropertyNweb(property, sandboxNsFlags);
1797 ret = OHOS::AppSpawn::SandboxUtils::SetAppSandboxProperty(property, sandboxNsFlags);