Skip to content

Commit 8c7a1ff

Browse files
committed
[docs] require pinned evidence inode through failure cleanup
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th>
1 parent 6fdce60 commit 8c7a1ff

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎docs/specifications/firmware/specs.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,6 +1636,12 @@ outputs MUST be outside both the candidate and the qualification Git checkout.
16361636
After its input callback, every exclusive evidence writer MUST reopen the
16371637
visible output through its retained parent descriptor and recheck the exact
16381638
inode, one-link mode-`0600` state, size, and bytes before reporting success.
1639+
The writer MUST retain an open descriptor for its originally created inode
1640+
through final validation and any failure cleanup. Closing its last descriptor
1641+
earlier permits inode-number reuse after an unlink, so a device/inode comparison
1642+
alone can mistake a replacement for the writer's file. Failure cleanup MUST
1643+
leave replacement files untouched and release the original descriptor only
1644+
after its ownership check and any unlink have completed.
16391645

16401646
For result admission the raw log contains exactly one line for each scenario
16411647
in `scenario_order`, with no start/end or free-text record. Every ordinary

0 commit comments

Comments
 (0)