Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/migrate-held-descriptor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
---

fix(migrate): open the migration target through a held descriptor rather than its path (#1162)

The target directory is pinned before the store opens and named through its descriptor as
`/proc/self/fd/<n>`, so the store's open, every manifest write and the summary all resolve to the
inode the security checks judged, however the operator's path is renamed afterwards. That narrows
the TOCTOU window between the check and the store's open; it does not close it, because heed
canonicalises the spelling before `mdb_env_open` (`heed-0.20.5/src/env.rs:239,305`), so the
mapping still resolves an absolute name.
Loading
Loading