Reject nonregular configuration files before opening them

This commit is contained in:
2026-09-06 19:04:04 -05:00
parent e0f9541f5f
commit 9c94f2b70a
6 changed files with 113 additions and 8 deletions

View File

@@ -50,6 +50,11 @@ references must remain prohibited inside dynamic values.
## 2. P1 — Reject nonregular source files before a blocking open
Status: complete. Selected files, rooted imports and profiles now inspect canonical
targets before opening and retain post-open checks. Deadline-controlled FIFO
subprocess tests cover all three paths. Full tests pass with the issue-8 TMPDIR
workaround; vet, build and whitespace checks pass.
Evidence: [source.go](../../source.go), `readSource`, calls `os.Open` before
checking regular-file status. [imports.go](../../imports.go), `readImport`, and
[profile.go](../../profile.go), `readProfileFile`, likewise open before checking.