Accept omitted optional MSI scope in Windows script bootstrap
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -311,7 +311,7 @@ if($settings.enable_effects-ne$false-or$settings.allow_reboot-ne$false-or@($sett
|
||||
$payloads=@{}
|
||||
foreach($name in @('settings','pin','native_result','qualification')){$item=$p.files.$name;$bytes=[Convert]::FromBase64String($item.base64);if($bytes.Length-lt1-or$bytes.Length-gt65536-or(HashBytes $bytes)-cne$item.sha256){throw 'Exact typed-renderer payload bytes'};$payloads[$name]=$bytes}
|
||||
$next=[Text.Encoding]::UTF8.GetString($payloads.settings)|ConvertFrom-Json
|
||||
if($next.schema_version-ne3-or$next.enable_effects-ne$true-or$next.allow_reboot-ne$false-or@($next.allowed_services).Count-ne0-or@($next.allowed_msi_recipe_sha256).Count-ne0-or($next.allowed_script_profiles-join',')-cne'full_maintenance_v1'-or$next.max_runtime_seconds-ne30){throw 'Only explicit schema3 script scope'}
|
||||
if($next.schema_version-ne3-or$next.enable_effects-ne$true-or$next.allow_reboot-ne$false-or@($next.allowed_services).Count-ne0-or($null-ne$next.PSObject.Properties['allowed_msi_recipe_sha256']-and($null-eq$next.allowed_msi_recipe_sha256-or$next.allowed_msi_recipe_sha256-isnot[Array]-or@($next.allowed_msi_recipe_sha256).Count-ne0))-or($next.allowed_script_profiles-join',')-cne'full_maintenance_v1'-or$next.max_runtime_seconds-ne30){throw 'Only explicit schema3 script scope'}
|
||||
if($next.agent.binary_sha256-cne$p.agent_binary_sha256-or$next.helper.binary_sha256-cne$p.helper_binary_sha256){throw 'Exact target code pins'}
|
||||
$qualification=[Text.Encoding]::UTF8.GetString($payloads.qualification)|ConvertFrom-Json
|
||||
$native=[Text.Encoding]::UTF8.GetString($payloads.native_result)|ConvertFrom-Json
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"policies_changed": false,
|
||||
"actual_typed_policy_sha256": "cfd126d383ec0a948a73270a8362bd835d79341a079be05ce50088f0dbc5791c",
|
||||
"services_changed": false,
|
||||
"predicate_sha256": "e50c086a0500a6232c15e8766512e8bc8727d437a105f0198ac94459aeb26543",
|
||||
"target_mutations": false,
|
||||
"schema_version": 1,
|
||||
"syntax_errors": 0,
|
||||
"checks": [
|
||||
{
|
||||
"name": "actual_cfd_absent",
|
||||
"expected_pass": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"name": "empty_array",
|
||||
"expected_pass": true,
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"name": "explicit_null",
|
||||
"expected_pass": false,
|
||||
"passed": false
|
||||
},
|
||||
{
|
||||
"name": "nonempty_recipe",
|
||||
"expected_pass": false,
|
||||
"passed": false
|
||||
},
|
||||
{
|
||||
"name": "string",
|
||||
"expected_pass": false,
|
||||
"passed": false
|
||||
}
|
||||
],
|
||||
"scope": "native_public_object_predicate_only",
|
||||
"source_controller_sha256": "cd00943315304ffb74fd13278b51a2780fdd12cccdcfb2948d699f7b8f265a17",
|
||||
"apply_source_sha256": "6a2eb7879cb919cf0dbc8ac7346613879eb1aa0b82a1ee80736fe1dbc8a04e01"
|
||||
}
|
||||
@@ -115,6 +115,20 @@ Bootstrapaufruf halten/nachweisen; bestehende Lebensdauersperren werden danach
|
||||
erneut exklusiv gehalten. Diese Härtungen aktivierten keine Policy und
|
||||
änderten keine Dienstkonfiguration.
|
||||
|
||||
Vor einem tatsächlichen Apply fand die Rootreview einen Bootstrapfehler:
|
||||
PowerShell zählt `@($null)` als ein Element. Die alte pauschale MSI-Countprüfung
|
||||
hätte deshalb das vom echten Rust-Renderer korrekt ausgelassene optionale
|
||||
Feld verweigert. Der enge Fix prüft zuerst die Propertyanwesenheit: fehlend
|
||||
oder ein tatsächlich leeres Array sind zulässig, explizites null, String und
|
||||
nichtleere Rezeptliste bleiben entsprechend dem strikten Rust-Typ verweigert.
|
||||
Auf Windows bestand ausschließlich die öffentliche Objekt-/Prädikatsprobe:
|
||||
originales CFD-Settingsobjekt angenommen, leeres Array angenommen, drei falsche
|
||||
Formen verweigert; Prädikatsparser null Fehler. Der erste überlange Inline-
|
||||
Prüftransport wurde schon vom SSH-Exec-Kanal abgewiesen; erst die gekürzte
|
||||
wirkungslose Probe lief tatsächlich. Kein SDK-/Dienst-/Policy-/Datei-Apply
|
||||
folgte daraus. Öffentlicher Beleg:
|
||||
[Prädikatsprüfung](evidence/windows-system-optional-msi-predicate-20261116.json).
|
||||
|
||||
## Tatsächlich lesend geprüft
|
||||
|
||||
Der bestehende bestätigte SSH-Entwicklungstransport wurde mit
|
||||
|
||||
Reference in New Issue
Block a user