{"version":"2.1.277","anchor":"hardened-file-identity-check-for-storage-reads-using-proc","canonical_anchor":"hardened-file-identity-check-for-storage-reads-using-proc","heading":"Hardened file-identity check for storage reads, using \/proc\/self\/fd where available","tier":"notice","area":"Internals","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277\/e\/hardened-file-identity-check-for-storage-reads-using-proc","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.277","markdown":"### Hardened file-identity check for storage reads, using \/proc\/self\/fd where available\n\nFile-identity checks for storage reads now use \/proc\/self\/fd on supporting systems, falling back to stat comparison\n\n**What**\n\nAfter opening a file for a storage read, Claude Code now verifies the file's identity by checking, where available, that `\/proc\/self\/fd\/<fd>` still points at the expected path and isn't marked '(deleted)'. On systems where `\/proc` isn't readable, it falls back to comparing stat information (link count, inode, and device) instead, and logs a one-time notice when it has to use that fallback.\n\n**Why**\n\nThis strengthens protection against a file being swapped out from under Claude Code between opening it and reading it, while still working on systems that lack a readable `\/proc`.\n\n- Area: Internals\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}