fix(ossl): put dynamic texture grant in last-loaded NexVerse override
This commit is contained in:
1 parent
2981ad882a
commit
5ebe0e03d2
5 files changed
+22
-20
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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**.
|
||||
|
||||
@@ -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")
|
||||
Reference in new issue
Block a user