Lines Matching defs:mntPoint
604 static bool CheckMountConfig(nlohmann::json &mntPoint, const AppSpawningCtx *appProperty,
607 bool istrue = mntPoint.find(g_srcPath) == mntPoint.end() || (!mntPoint[g_srcPath].is_string()) ||
608 mntPoint.find(g_sandBoxPath) == mntPoint.end() || (!mntPoint[g_sandBoxPath].is_string()) ||
609 ((mntPoint.find(g_sandBoxFlags) == mntPoint.end()) &&
610 (mntPoint.find(g_sandBoxFlagsCustomized) == mntPoint.end()));
618 if (mntPoint[g_appAplName] != nullptr) {
619 std::string app_apl_name = mntPoint[g_appAplName].get<std::string>();
627 const std::string configSrcPath = mntPoint[g_srcPath].get<std::string>();
751 nlohmann::json &mntPoint, SandboxMountConfig &mountConfig)
754 mountConfig.optionsPoint = GetSandboxOptions(appProperty, mntPoint);
755 mountConfig.fsType = GetSandboxFsType(mntPoint);
757 mountConfig.fsType = (mntPoint.find(g_fsType) != mntPoint.end()) ? mntPoint[g_fsType].get<std::string>() : "";
763 std::string SandboxUtils::GetSandboxPath(const AppSpawningCtx *appProperty, nlohmann::json &mntPoint,
767 std::string tmpSandboxPath = mntPoint[g_sandBoxPath].get<std::string>();
803 nlohmann::json& mntPoint = mountPoints[i];
804 if ((CheckMountConfig(mntPoint, appProperty, checkFlag) == false)) {
808 std::string srcPath = ConvertToRealPath(appProperty, mntPoint[g_srcPath].get<std::string>());
809 std::string sandboxPath = GetSandboxPath(appProperty, mntPoint, section, sandboxRoot);
811 GetSandboxMountConfig(appProperty, section, mntPoint, mountConfig);
812 unsigned long mountFlags = GetSandboxMountFlags(mntPoint);
813 mode_t mountSharedFlag = (mntPoint.find(g_mountSharedFlag) != mntPoint.end()) ? MS_SHARED : MS_SLAVE;
823 (void)JsonUtils::GetStringFromJson(mntPoint, g_actionStatuc, actionStatus);
831 DoSandboxChmod(mntPoint, sandboxRoot);