chore: release v0.5.0
Problem
Since 0.4.1, main has the fixes from an internal review at ea159a6 (#100 to #106), the review brief that points at them (#107), OpenSSL's configuration for a confined worker (#99), and a CI repin with one more test (#109). Three of the fixes close holes in published versions: a symlink or another spelling of a path reached a nested grant with fewer rights using the outer grant's rights (#104), a read_dir listing could open, write, and remove files with only LIST, after revoke too (#106), and on macOS another user could replace a --socket path through the directory's access list (#105). None are on crates.io.
Change
Prepares 0.5.0, following the release procedure:
cargo set-version --package fsgate 0.5.0 --offline(cargo-edit 0.13.13): the manifest andCargo.lockchange only fsgate's version.cargo update --manifest-path fuzz/Cargo.toml -p fsgate --offlinedoes the same in the fuzz crate's lockfile, as 0.4.0 did.CHANGELOG.md:Unreleasedbecomes0.5.0 (unreleased), with a note on why to upgrade and why this is a minor release. The entries are unchanged.ROADMAP.md: an open item for the release, as for 0.4.0 and 0.4.1. It says the release does not wait for the independent review and does not includeexperimental-intercept. The order paragraph gains the internal review's fixes and 0.5.0.
Minor, not patch: two changes break callers. A policy that nests a grant with fewer rights than the grant around it now fails with GateError::NestedGrant (RFC 0012), and Gate::read_dir returns Vec<DirEntry> instead of ReadDir (RFC 0013). The changelog gives the replacement for each.
Safety and compatibility
No code changes. Dependencies and the Rust minimum (1.85) are unchanged.
Verification
Locally on macOS (Apple M1), Rust 1.99.1, on 8ae71a0 (the preparation commit de9b962 merged with main at ae0ff53, for #109):
cargo fmt --all --check: clean.cargo clippy --all-targets -- -D warnings: clean on macOS,x86_64-unknown-linux-gnu, andaarch64-unknown-linux-gnu, and with-p fsgate --features experimental-intercepton x86_64 Linux.cargo test --locked: 136 passed.cargo +1.85.0 test --locked: 136 passed.cargo deny check: advisories, bans, licenses, and sources ok.RUSTDOCFLAGS='-D warnings' cargo doc --locked --no-deps: clean.cargo package --locked -p fsgate:fsgate-0.5.0.crate, sha25643dc2445de6fef8d511e54d7d7a4ca5d7cdfe5c52af1b4bc823d86c8cad7ab34. In the extracted archive,LICENSEandREADME.mdare regular files and.cargo_vcs_info.jsonrecords8ae71a0b1918f30ee12aeaf4722d6ea1437b3f02.cargo test --lockedfrom the archive, each toolchain with a fresh target directory: 136 passed on 1.99.1 and on 1.85.0. (Reusing a target directory between archives is not a check: the archive's files carry a fixed 2006 mtime, so cargo kept a stale test binary and ran 135.)
Local tests built with CARGO_PROFILE_DEV_DEBUG=0 and CARGO_PROFILE_TEST_DEBUG=0 to save disk. macOS does not exercise Landlock; CI on this PR covers Linux.
Not verified: the squash commit on main will have a different SHA than 8ae71a0, so the archive checksum above is not the published one. The release workflow checks the published archive against the tag.
Documentation and release
Merging this is not a release. After it merges, and only on the maintainer's explicit request, the signed tag v0.5.0 on the merge commit starts the trusted-publishing workflow. A follow-up PR then records the release in the changelog, README status, and roadmap, as #96 did for 0.4.1.