Fix R5: SealedStore plaintext tmp 0600 + SQLCipher deferred note #9

Merged
leora merged 1 commits from leora/fix-r5-sealed-tmp-hardening into sigil-initial 2026-10-06 06:14:43 +08:00

1 Commits

Author SHA1 Message Date
4e65f6671a Fix R5: SealedStore plaintext tmp is 0600 with fsync/cleanup
Plaintext working copy and export backup were creatable world-readable
under a 0700 temp dir. Write via os.open(mode=0600), fsync, unlink on
failure; pin temp dir 0700; remove export after flush. Document SQLCipher
as deferred — seal-on is not an encrypted DB while the process is open.
2026-10-06 06:14:41 +08:00