Lines Matching full:json

25 #include "nlohmann/json.hpp"
38 static void StoreJsonConfig(nlohmann::json &appSandboxConfig, SandboxConfigType type);
39 static std::vector<nlohmann::json> &GetJsonConfig(SandboxConfigType type);
58 static int32_t DoSandboxFileCommonBind(const AppSpawningCtx *appProperty, nlohmann::json &wholeConfig);
60 nlohmann::json &wholeConfig);
61 static int32_t DoSandboxFilePrivateBind(const AppSpawningCtx *appProperty, nlohmann::json &wholeConfig);
63 nlohmann::json &wholeConfig);
65 nlohmann::json &wholeConfig);
67 nlohmann::json &wholeConfig);
69 nlohmann::json &wholeConfig);
78 static void DoSandboxChmod(nlohmann::json jsonConfig, std::string &sandboxRoot);
80 nlohmann::json &appConfig, const char *typeName, const std::string &section = "app-base");
81 static int DoAllSymlinkPointslink(const AppSpawningCtx *appProperty, nlohmann::json &appConfig);
84 static std::string GetSbxPathByConfig(const AppSpawningCtx *appProperty, nlohmann::json &config);
88 static bool GetSbxSwitchStatusByConfig(nlohmann::json &config);
91 nlohmann::json &config);
93 nlohmann::json &config);
103 nlohmann::json &wholeConfig);
105 nlohmann::json &config);
107 static int32_t DoAddGid(AppSpawningCtx *appProperty, nlohmann::json &appConfig,
115 static bool GetSandboxDacOverrideEnable(nlohmann::json &config);
116 static unsigned long GetSandboxMountFlags(nlohmann::json &config);
117 static std::string GetSandboxFsType(nlohmann::json &config);
118 static std::string GetSandboxOptions(const AppSpawningCtx *appProperty, nlohmann::json &config);
119 static std::string GetSandboxPath(const AppSpawningCtx *appProperty, nlohmann::json &mntPoint,
122 nlohmann::json &mntPoint,SandboxMountConfig &mountConfig);
126 static std::map<SandboxConfigType, std::vector<nlohmann::json>> appSandboxConfig_;
131 static bool GetJsonObjFromJson(nlohmann::json &jsonObj, const std::string &jsonPath);
132 static bool GetStringFromJson(const nlohmann::json &json, const std::string &key, std::string &value);