diff --git a/bin/OpenSim.ini b/bin/OpenSim.ini index 424d2983..6849d81c 100644 --- a/bin/OpenSim.ini +++ b/bin/OpenSim.ini @@ -249,12 +249,6 @@ [OSSL] Include-osslDefaultEnable = "config-include/osslDefaultEnable.ini" - ; Allow local text/weather display prims to render VectorRender graphics. - ; This is the VeryLow OSSL function only, not a broader threat-level grant. - ; IMPORTANT: any script owner on this simulator can now render textures. - ; To restrict it, replace true with a comma-separated owner UUID allowlist. - ; Both osSetDynamicTextureData and ...DataFace check THIS permission. - Allow_osSetDynamicTextureData = true [Groups] Enabled = true diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 8b1288d4..32a6ce70 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -238,12 +238,6 @@ [OSSL] Include-osslDefaultEnable = "config-include/osslDefaultEnable.ini" - ; Allow local text/weather display prims to render VectorRender graphics. - ; This is the VeryLow OSSL function only, not a broader threat-level grant. - ; IMPORTANT: any script owner on this simulator can now render textures. - ; To restrict it, replace true with a comma-separated owner UUID allowlist. - ; Both osSetDynamicTextureData and ...DataFace check THIS permission. - Allow_osSetDynamicTextureData = true [Groups] Enabled = true diff --git a/bin/config-include/osslEnable.ini b/bin/config-include/osslEnable.ini index b7122099..1a49438c 100644 --- a/bin/config-include/osslEnable.ini +++ b/bin/config-include/osslEnable.ini @@ -39,6 +39,13 @@ ; functions below remain restricted to trusted estate roles. Allow_osAvatarPlayAnimation = true Allow_osAvatarStopAnimation = true + + ; Stadt NexVerse dynamic weather/text boards and VectorRender displays. + ; VeryLow function only; do NOT change OSFunctionThreatLevel=NoAccess. + ; Allow_osSetDynamicTextureDataFace uses this same permission check. + ; WARNING: true permits every object owner to render textures (CPU/asset usage). + ; Restrict to trusted owner UUIDs if running untrusted high-volume scripts. + Allow_osSetDynamicTextureData = true Allow_osForceAttachToOtherAvatarFromInventory = ESTATE_MANAGER,ESTATE_OWNER Allow_osForceDetachFromAvatar = ESTATE_MANAGER,ESTATE_OWNER Allow_osForceOtherSit = ESTATE_MANAGER,ESTATE_OWNER diff --git a/doc/NexVerse/GEN1_INWORLD_LSL_PACKS.md b/doc/NexVerse/GEN1_INWORLD_LSL_PACKS.md index f527f0cb..7898be9f 100644 --- a/doc/NexVerse/GEN1_INWORLD_LSL_PACKS.md +++ b/doc/NexVerse/GEN1_INWORLD_LSL_PACKS.md @@ -136,9 +136,11 @@ OGL-Viewer-Renderer bleibt ein separates Entwicklungsziel. ### OSSL-Berechtigung für dynamische Wetteranzeigen Die Texturtafeln (inklusive eigener Skripte, die `osSetDynamicTextureData` -verwenden) benötigen eine explizite Freigabe. Das aktive -`bin/OpenSim.ini` und die Beispielvorlage setzen unter `[OSSL]`: -`Allow_osSetDynamicTextureData = true`. Das genügt sowohl für +verwenden) benötigen eine explizite Freigabe. Die tatsächlich zuletzt +geladene `bin/config-include/osslEnable.ini` setzt unter `[OSSL]` +`Allow_osSetDynamicTextureData = true`. `bin/OpenSim.ini` bindet über +`osslDefaultEnable.ini` diese abschließende Override-Datei ein. +Die Freigabe genügt sowohl für `osSetDynamicTextureData` als auch für `osSetDynamicTextureDataFace`, weil beide im aktuellen Server denselben Berechtigungsnamen prüfen. Das globale `OSFunctionThreatLevel` wird **nicht erhöht**. diff --git a/tools/ci/verify_ogl_weather.py b/tools/ci/verify_ogl_weather.py index adc82c2a..4557d14e 100644 --- a/tools/ci/verify_ogl_weather.py +++ b/tools/ci/verify_ogl_weather.py @@ -152,15 +152,20 @@ assert "OGLSeasons" not in workflow, "obsolete CI weather gate still active" assert "OGLSeasons" not in read("runprebuild.sh"), "obsolete compile step still active" assert "OGLWeather" in read("runprebuild.sh"), "new addon missing from compile script" -# Public Stadt NexVerse weather/text boards render under ordinary resident -# ownership, not just ESTATE_MANAGER/ESTATE_OWNER. Only the VeryLow dynamic -# texture renderer is enabled: no global OSSL threat-level escalation. +# Config loader merges OpenSim.ini, then the included osslDefaultEnable.ini +# and ultimately config-include/osslEnable.ini. Override the final included +# profile rather than setting an ineffective key in OpenSim.ini itself. for path in ("bin/OpenSim.ini", "bin/OpenSim.ini.example"): settings = read(path) ossl = settings.split("[OSSL]", 1)[1].split("\n[", 1)[0] assert 'Include-osslDefaultEnable = "config-include/osslDefaultEnable.ini"' in ossl - assert "Allow_osSetDynamicTextureData = true" in ossl - assert "OSFunctionThreatLevel =" not in ossl, "never escalate OSSL threat level" + assert "Allow_osSetDynamicTextureData =" not in ossl +base_ossl = read("bin/config-include/osslDefaultEnable.ini") +assert 'Include-osslEnable = "config-include/osslEnable.ini"' in base_ossl +override_ossl = read("bin/config-include/osslEnable.ini") +assert "Allow_osSetDynamicTextureData = true" in override_ossl +assert "OSFunctionThreatLevel = NoAccess" in override_ossl, "do not increase global OSSL threat level" +assert override_ossl.count("Allow_osSetDynamicTextureData = true") == 1 dynamic_api = read("OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs") assert 'CheckThreatLevel(ThreatLevel.VeryLow, "osSetDynamicTextureData")' in dynamic_api print("OGLWeather static contracts: simulator-wide, deterministic, opt-in, native viewer CAPS plus bounded ephemeral Firestorm particles PASS")