Repository navigation
feat(files): unnamed temporary files for file and stream targets on Linux - #361
Conversation
…inux DE: #338 PR 2: Datei- und Stromziele (decrypt, encrypt als .pqkf) entstehen unter Linux als namenlose Datei (O_TMPFILE) und werden nach voller Prüfung per linkat auf den Deskriptor veröffentlicht – nach Kill oder Absturz bleibt kein benannter Rest. Rückfall auf benannte Temporärdatei, wo das Dateisystem es nicht kann. Test-Schalter named_temps_only (nur cfg(test)) für FAT-/Aufräumfälle, neuer Test unnamed_temp_leaves_no_name_after_failure, Kill-Test verlangt jetzt keinen Rest. Doku, QA1-REC-003, Matrix 1.10.0. EN: #338 PR 2: on Linux file and stream targets (decrypt, encrypt to .pqkf) are created as an unnamed file (O_TMPFILE) and published via linkat on the descriptor after full verification – no named leftover after a kill or crash. Falls back to a named temporary file where the file system cannot. Test switch named_temps_only (cfg(test) only) for FAT/cleanup cases, new test unnamed_temp_leaves_no_name_after_failure, the kill test now requires no leftover. Docs, QA1-REC-003, matrix 1.10.0. Refs #338 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
DE: Codex-Review fiel wegen Nutzungslimit aus. Eigene Durchsicht ohne Befund (Rückfall bei fehlendem O_TMPFILE/Handle-Pfad, Rechte 0600, Test-Schalter nur cfg(test)); volle Suite lokal grün, CI 23/23, unter der CLI-Sandbox per strace geprüft. Merge mit Freigabe des Maintainers. |
DE: #338 PR 2 (Rest) – kein benannter Klartextrest nach Kill.
decrypt,encryptals.pqkf) entstehen peropenat(O_TMPFILE)als namenlose Datei im Zielordner und werden nach voller Prüfung perlinkatauf den Deskriptor (/proc/self/fd/N) veröffentlicht. Nur wenn das sicher möglich ist (Handle-Pfad geprüft); sonst Rückfall auf die benannte Temporärdatei (z. B. FAT).stracegeprüft:openat(…O_TMPFILE…) = 3,linkat(…AT_SYMLINK_FOLLOW) = 0, kein Temporärname.unnamed_temp_leaves_no_name_after_failure; Test-Schalterfsutil::named_temps_only()(nurcfg(test)) für die FAT-/Aufräumfälle (REC-007/008/009, Rückfall-Race), damit sie ihren Fall weiter erzwingen; Kill-Test (tests/integrity_kill.rs) verlangt jetzt keinen Rest und erkennt das Schreiben über den belegten Platz (PQKeep ist nicht „dumpable“,/proc/<pid>/fddaher nicht lesbar).EN: #338 PR 2 (rest) – no named plaintext leftover after a kill. On Linux file and stream targets are created as an unnamed
O_TMPFILEfile and published vialinkaton the descriptor after full verification, falling back to a named temporary file where impossible. Checked under the CLI sandbox. New test,cfg(test)-only switch for FAT/cleanup cases, the kill test now requires no leftover. Docs, matrix 1.10.0. Full suite green locally.Refs #338
🤖 Generated with Claude Code