Lines Matching defs:property
149 static uint32_t GetAppMsgFlags(const AppSpawningCtx *property)
151 APPSPAWN_CHECK(property != nullptr && property->message != nullptr,
152 return 0, "Invalid property for name %{public}u", TLV_MSG_FLAGS);
153 AppSpawnMsgFlags *msgFlags = (AppSpawnMsgFlags *)GetAppSpawnMsgInfo(property->message, TLV_MSG_FLAGS);
155 return 0, "No TLV_MSG_FLAGS in msg %{public}s", property->message->msgHeader.processName);
414 APPSPAWN_CHECK(dacInfo != NULL, return, "No dac info in msg app property");
1539 APPSPAWN_LOGI("Set appsandbox property success");
1772 int32_t SetAppSandboxProperty(AppSpawnMgr *content, AppSpawningCtx *property)
1774 APPSPAWN_CHECK(property != nullptr, return -1, "Invalid appspwn client");
1778 if (CheckAppMsgFlagsSet(property, APP_FLAGS_NO_SANDBOX)) {
1788 if ((CheckAppMsgFlagsSet(property, APP_FLAGS_ISOLATED_SANDBOX) && !IsDeveloperModeOpen()) ||
1789 CheckAppMsgFlagsSet(property, APP_FLAGS_ISOLATED_NETWORK)) {
1795 ret = OHOS::AppSpawn::SandboxUtils::SetAppSandboxPropertyNweb(property, sandboxNsFlags);
1797 ret = OHOS::AppSpawn::SandboxUtils::SetAppSandboxProperty(property, sandboxNsFlags);
1800 if (CheckAppMsgFlagsSet(property, APP_FLAGS_IGNORE_SANDBOX)) {
1838 static void MountDir(const AppSpawningCtx *property, const char *rootPath, const char *srcPath, const char *targetPath)
1841 AppDacInfo *info = reinterpret_cast<AppDacInfo *>(GetAppProperty(property, TLV_DAC_INFO));
1842 const char *bundleName = GetBundleName(property);
1890 static void MountDirToShared(const AppSpawningCtx *property)
1895 AppDacInfo *info = reinterpret_cast<AppDacInfo *>(GetAppProperty(property, TLV_DAC_INFO));
1896 const char *bundleName = GetBundleName(property);
1902 MountDir(property, rootPath, sourcePath.c_str(), el1Path);
1911 MountDir(property, rootPath, nullptr, MOUNT_SHARED_MAP[i].sandboxPath);
1915 if (CheckAppPermissionFlagSet(property, static_cast<uint32_t>(index))) {
1916 MountDir(property, rootPath, nullptr, MOUNT_SHARED_MAP[i].sandboxPath);
1922 lockSbxPathStamp += CheckAppMsgFlagsSet(property, APP_FLAGS_ISOLATED_SANDBOX_TYPE) ? "isolated/" : "";
1929 static int SpawnMountDirToShared(AppSpawnMgr *content, AppSpawningCtx *property)
1933 MountDirToShared(property);