windows: a failed check of the state root is made again (0.1.0-pre.2)

The once-per-process guard recorded the root before ensure_root ran. A
first check that failed (the service log's create_all ignores its error)
left the root marked as checked, so run()'s create_all skipped the check
and the service went on with a root it could not secure, and runs what
is under its bin\ as SYSTEM. Now only a check that passed is recorded,
under the lock, and a failed one fails again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 00:51:32 +03:00
1 parent e84d42a10c
commit 363caf912a
3 files changed
+34 -18

No files matched your search

+4 -4
View File
@@ -879,7 +879,7 @@ dependencies = [
[[package]]
name = "ps-core"
version = "0.1.0-pre.1"
version = "0.1.0-pre.2"
dependencies = [
"base64 0.22.1",
"indexmap",
@@ -893,7 +893,7 @@ dependencies = [
[[package]]
name = "ps-ctl"
version = "0.1.0-pre.1"
version = "0.1.0-pre.2"
dependencies = [
"anyhow",
"clap",
@@ -905,7 +905,7 @@ dependencies = [
[[package]]
name = "ps-ipc"
version = "0.1.0-pre.1"
version = "0.1.0-pre.2"
dependencies = [
"serde",
"serde_json",
@@ -916,7 +916,7 @@ dependencies = [
[[package]]
name = "ps-service"
version = "0.1.0-pre.1"
version = "0.1.0-pre.2"
dependencies = [
"anyhow",
"clap",