test(triage): review round 5: a host bundle file replaced with a FIFO is refused before the host reads it (#1873, lane harness-matrix)
This commit was merged in pull request #2001.
This commit is contained in:
1 parent
1e0aba8b37
commit
4f63176676
1 file changed
+3
@@ -678,6 +678,9 @@ test("#1873 fence: a pi-shaped answer passes the host's fences, and each fence s
|
||||
// A host bundle file the module deletes or replaces is refused, though the scan never reaches it.
|
||||
await fence("a module that deletes the host's prompt", { module: piWith(({ dir }) => rmSync(join(dir, "prompt.md"))), fenceName: "harness-bundle" });
|
||||
await fence("a module that hard-links the host's prompt", { module: piWith(({ dir }) => linkSync(join(dir, "prompt.md"), join(agentOf(dir), "tmp", "prompt.md"))), fenceName: "harness-bundle" });
|
||||
// A FIFO there has one link, and a read of it with no writer would block: the host must see it is
|
||||
// not a regular file before it reads.
|
||||
await fence("a module that replaces the host's prompt with a FIFO", { module: piWith(({ dir }) => { rmSync(join(dir, "prompt.md")); execFileSync("mkfifo", [join(dir, "prompt.md")]); }), fenceName: "harness-bundle" });
|
||||
await fence("a module that replaces the host's policy with a directory", { module: piWith(({ dir }) => { rmSync(join(dir, "policy.json")); mkdirSync(join(dir, "policy.json")); }), fenceName: "harness-bundle" });
|
||||
// A session/ file rewritten in place at the same size, with its times set back, still shows: its
|
||||
// ctime moved.
|
||||
|
||||
Reference in new issue
Block a user